%global _empty_manifest_terminate_build 0 Name: python-solaredge Version: 0.0.4 Release: 1 Summary: A python API wrapper for Solaredge monitoring service License: MIT URL: https://github.com/bertouttier/solaredge Source0: https://mirrors.nju.edu.cn/pypi/web/packages/91/46/c9c7ce9709b5ad88cdf1029d1d56453d67be200a9fd774454ca941873f0c/solaredge-0.0.4.tar.gz BuildArch: noarch Requires: python3-requests Requires: python3-pytz Requires: python3-dateutil %description # Solaredge Python Client for Solaredge monitoring service. See https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf ## Create a new connection by supplying your Solaredge API key ``` s = solaredge.Solaredge("APIKEY") ``` ## Raw API Requests 12 API requests are supported. The methods return the parsed JSON response as a dict. ``` def get_list(self, size=100, start_index=0, search_text="", sort_property="", sort_order='ASC', status='Active,Pending'): def get_details(self, site_id): def get_data_period(self, site_id): def get_energy(self, site_id, start_date, end_date, time_unit='DAY'): def get_time_frame_energy(self, site_id, start_date, end_date, time_unit='DAY'): def get_power(self, site_id, start_time, end_time): def get_overview(self, site_id): def get_power_details(self, site_id, start_time, end_time, meters=None): def get_energy_details(self, site_id, start_time, end_time, meters=None, time_unit="DAY"): def get_current_power_flow(self, site_id): def get_storage_data(self, site_id, start_time, end_time, serials=None): def get_inventory(self, site_id): ``` ## Parsed API Requests - `get_data_period_parsed`: Get start and end dates as datetime objects - `get_energy_details_dataframe`: Get energy details as a Pandas DataFrame. This method deals with the API usage restrictions, allowing you to do bulk requests. - `get_timezone`: Get the IANA timezone of a site ## TODO * Add API documentation for certain requests * Add more DataFrame parsers for other calls %package -n python3-solaredge Summary: A python API wrapper for Solaredge monitoring service Provides: python-solaredge BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-solaredge # Solaredge Python Client for Solaredge monitoring service. See https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf ## Create a new connection by supplying your Solaredge API key ``` s = solaredge.Solaredge("APIKEY") ``` ## Raw API Requests 12 API requests are supported. The methods return the parsed JSON response as a dict. ``` def get_list(self, size=100, start_index=0, search_text="", sort_property="", sort_order='ASC', status='Active,Pending'): def get_details(self, site_id): def get_data_period(self, site_id): def get_energy(self, site_id, start_date, end_date, time_unit='DAY'): def get_time_frame_energy(self, site_id, start_date, end_date, time_unit='DAY'): def get_power(self, site_id, start_time, end_time): def get_overview(self, site_id): def get_power_details(self, site_id, start_time, end_time, meters=None): def get_energy_details(self, site_id, start_time, end_time, meters=None, time_unit="DAY"): def get_current_power_flow(self, site_id): def get_storage_data(self, site_id, start_time, end_time, serials=None): def get_inventory(self, site_id): ``` ## Parsed API Requests - `get_data_period_parsed`: Get start and end dates as datetime objects - `get_energy_details_dataframe`: Get energy details as a Pandas DataFrame. This method deals with the API usage restrictions, allowing you to do bulk requests. - `get_timezone`: Get the IANA timezone of a site ## TODO * Add API documentation for certain requests * Add more DataFrame parsers for other calls %package help Summary: Development documents and examples for solaredge Provides: python3-solaredge-doc %description help # Solaredge Python Client for Solaredge monitoring service. See https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf ## Create a new connection by supplying your Solaredge API key ``` s = solaredge.Solaredge("APIKEY") ``` ## Raw API Requests 12 API requests are supported. The methods return the parsed JSON response as a dict. ``` def get_list(self, size=100, start_index=0, search_text="", sort_property="", sort_order='ASC', status='Active,Pending'): def get_details(self, site_id): def get_data_period(self, site_id): def get_energy(self, site_id, start_date, end_date, time_unit='DAY'): def get_time_frame_energy(self, site_id, start_date, end_date, time_unit='DAY'): def get_power(self, site_id, start_time, end_time): def get_overview(self, site_id): def get_power_details(self, site_id, start_time, end_time, meters=None): def get_energy_details(self, site_id, start_time, end_time, meters=None, time_unit="DAY"): def get_current_power_flow(self, site_id): def get_storage_data(self, site_id, start_time, end_time, serials=None): def get_inventory(self, site_id): ``` ## Parsed API Requests - `get_data_period_parsed`: Get start and end dates as datetime objects - `get_energy_details_dataframe`: Get energy details as a Pandas DataFrame. This method deals with the API usage restrictions, allowing you to do bulk requests. - `get_timezone`: Get the IANA timezone of a site ## TODO * Add API documentation for certain requests * Add more DataFrame parsers for other calls %prep %autosetup -n solaredge-0.0.4 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-solaredge -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue May 30 2023 Python_Bot - 0.0.4-1 - Package Spec generated