diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:50:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:50:08 +0000 |
commit | 4914d578a4bd06a9a8249a95280c5f156df0d5f5 (patch) | |
tree | d4c77f7fd3f3a48c7a882e2a2255d49a87f1d507 | |
parent | 596934feba9fabc282e4b0cb2106d872b3698be2 (diff) |
automatic import of python-ISS-Infoopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-iss-info.spec | 283 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 285 insertions, 0 deletions
@@ -0,0 +1 @@ +/ISS_Info-1.0.0.tar.gz diff --git a/python-iss-info.spec b/python-iss-info.spec new file mode 100644 index 0000000..5c11a75 --- /dev/null +++ b/python-iss-info.spec @@ -0,0 +1,283 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ISS-Info +Version: 1.0.0 +Release: 1 +Summary: Python wrapper for tracking information about International Space Station via http://open-notify.org/ +License: MIT +URL: https://github.com/Quarantine-Projects/ISS_Info +Source0: https://mirrors.aliyun.com/pypi/web/packages/d2/b5/3b818e1b0f44e36ea720191fe8282a7eef34411041becf231c71233d5f2f/ISS_Info-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +# ISS-Info +<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> +[](#contributors-) +[](https://lbesson.mit-license.org/) +<!-- ALL-CONTRIBUTORS-BADGE:END --> + +Python wrapper for tracking information about International Space Station via http://open-notify.org + +## Installation + +In order install this package, simply run: + +```bash +pip install ISS_Info +``` + +## Usage + +To use ISS_Info, you first need to import the package: + +```python +import ISS_Info +``` + +### International Space Station Current Location: + +```python +ISS_Info.iss_current_loc() # Returns a dictionary with latitude, longitude, timestamp. +``` + +### How Many People Are In ISS Right Now: + +```python +ISS_Info.iss_people_in_space() # Returns a dictionary with number, names, craft information. +``` + +### International Space Station Pass Times: +Given a location on Earth (latitude, longitude, and altitude) this API will compute the next n number of times that the ISS will be overhead. Overhead is defined as 10° in elevation for the observer. The times are computed in UTC and the length of time that the ISS is above 10° is in seconds. + +```python +ISS_Info.iss_passes(43.5,-74,200,3) # Returns a dictionary with every pass information. +``` +| Input | Description | Parameter Name | Valid Range | Units | Required | +|---------|---------------|------------------|---------------|---------|------------| +|Latitude | The latitude of the place to predict passes | lat | -80 ~ 80 | degrees | YES | +| Longitude | The longitude of the place to predict passes | lon | -180 ~ 180 | degrees | YES | +| Altitude | The altitude of the place to predict passes | alt | 0 ~ 10,000 | meters| Optional | +|Number|The number of passes to return|n|1 ~ 100|–| Optional| + +## Contributors ✨ + +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): + +<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> +<!-- prettier-ignore-start --> +<!-- markdownlint-disable --> +<table> + <tr> + <td align="center"><a href="https://github.com/salil-gtm"><img src="https://avatars2.githubusercontent.com/u/18382251?v=4" width="100px;" alt=""/><br /><sub><b>Salil Gautam</b></sub></a><br /><a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=salil-gtm" title="Code">💻</a> <a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=salil-gtm" title="Documentation">📖</a> <a href="#example-salil-gtm" title="Examples">💡</a></td> + <td align="center"><a href="https://github.com/pdx97"><img src="https://avatars3.githubusercontent.com/u/28250686?v=4" width="100px;" alt=""/><br /><sub><b>Pdx97</b></sub></a><br /><a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=pdx97" title="Code">💻</a> <a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=pdx97" title="Documentation">📖</a> <a href="#example-pdx97" title="Examples">💡</a></td> + </tr> +</table> + +<!-- markdownlint-enable --> +<!-- prettier-ignore-end --> +<!-- ALL-CONTRIBUTORS-LIST:END --> + +This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! + + + + +%package -n python3-ISS-Info +Summary: Python wrapper for tracking information about International Space Station via http://open-notify.org/ +Provides: python-ISS-Info +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ISS-Info +# ISS-Info +<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> +[](#contributors-) +[](https://lbesson.mit-license.org/) +<!-- ALL-CONTRIBUTORS-BADGE:END --> + +Python wrapper for tracking information about International Space Station via http://open-notify.org + +## Installation + +In order install this package, simply run: + +```bash +pip install ISS_Info +``` + +## Usage + +To use ISS_Info, you first need to import the package: + +```python +import ISS_Info +``` + +### International Space Station Current Location: + +```python +ISS_Info.iss_current_loc() # Returns a dictionary with latitude, longitude, timestamp. +``` + +### How Many People Are In ISS Right Now: + +```python +ISS_Info.iss_people_in_space() # Returns a dictionary with number, names, craft information. +``` + +### International Space Station Pass Times: +Given a location on Earth (latitude, longitude, and altitude) this API will compute the next n number of times that the ISS will be overhead. Overhead is defined as 10° in elevation for the observer. The times are computed in UTC and the length of time that the ISS is above 10° is in seconds. + +```python +ISS_Info.iss_passes(43.5,-74,200,3) # Returns a dictionary with every pass information. +``` +| Input | Description | Parameter Name | Valid Range | Units | Required | +|---------|---------------|------------------|---------------|---------|------------| +|Latitude | The latitude of the place to predict passes | lat | -80 ~ 80 | degrees | YES | +| Longitude | The longitude of the place to predict passes | lon | -180 ~ 180 | degrees | YES | +| Altitude | The altitude of the place to predict passes | alt | 0 ~ 10,000 | meters| Optional | +|Number|The number of passes to return|n|1 ~ 100|–| Optional| + +## Contributors ✨ + +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): + +<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> +<!-- prettier-ignore-start --> +<!-- markdownlint-disable --> +<table> + <tr> + <td align="center"><a href="https://github.com/salil-gtm"><img src="https://avatars2.githubusercontent.com/u/18382251?v=4" width="100px;" alt=""/><br /><sub><b>Salil Gautam</b></sub></a><br /><a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=salil-gtm" title="Code">💻</a> <a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=salil-gtm" title="Documentation">📖</a> <a href="#example-salil-gtm" title="Examples">💡</a></td> + <td align="center"><a href="https://github.com/pdx97"><img src="https://avatars3.githubusercontent.com/u/28250686?v=4" width="100px;" alt=""/><br /><sub><b>Pdx97</b></sub></a><br /><a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=pdx97" title="Code">💻</a> <a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=pdx97" title="Documentation">📖</a> <a href="#example-pdx97" title="Examples">💡</a></td> + </tr> +</table> + +<!-- markdownlint-enable --> +<!-- prettier-ignore-end --> +<!-- ALL-CONTRIBUTORS-LIST:END --> + +This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! + + + + +%package help +Summary: Development documents and examples for ISS-Info +Provides: python3-ISS-Info-doc +%description help +# ISS-Info +<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> +[](#contributors-) +[](https://lbesson.mit-license.org/) +<!-- ALL-CONTRIBUTORS-BADGE:END --> + +Python wrapper for tracking information about International Space Station via http://open-notify.org + +## Installation + +In order install this package, simply run: + +```bash +pip install ISS_Info +``` + +## Usage + +To use ISS_Info, you first need to import the package: + +```python +import ISS_Info +``` + +### International Space Station Current Location: + +```python +ISS_Info.iss_current_loc() # Returns a dictionary with latitude, longitude, timestamp. +``` + +### How Many People Are In ISS Right Now: + +```python +ISS_Info.iss_people_in_space() # Returns a dictionary with number, names, craft information. +``` + +### International Space Station Pass Times: +Given a location on Earth (latitude, longitude, and altitude) this API will compute the next n number of times that the ISS will be overhead. Overhead is defined as 10° in elevation for the observer. The times are computed in UTC and the length of time that the ISS is above 10° is in seconds. + +```python +ISS_Info.iss_passes(43.5,-74,200,3) # Returns a dictionary with every pass information. +``` +| Input | Description | Parameter Name | Valid Range | Units | Required | +|---------|---------------|------------------|---------------|---------|------------| +|Latitude | The latitude of the place to predict passes | lat | -80 ~ 80 | degrees | YES | +| Longitude | The longitude of the place to predict passes | lon | -180 ~ 180 | degrees | YES | +| Altitude | The altitude of the place to predict passes | alt | 0 ~ 10,000 | meters| Optional | +|Number|The number of passes to return|n|1 ~ 100|–| Optional| + +## Contributors ✨ + +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): + +<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> +<!-- prettier-ignore-start --> +<!-- markdownlint-disable --> +<table> + <tr> + <td align="center"><a href="https://github.com/salil-gtm"><img src="https://avatars2.githubusercontent.com/u/18382251?v=4" width="100px;" alt=""/><br /><sub><b>Salil Gautam</b></sub></a><br /><a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=salil-gtm" title="Code">💻</a> <a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=salil-gtm" title="Documentation">📖</a> <a href="#example-salil-gtm" title="Examples">💡</a></td> + <td align="center"><a href="https://github.com/pdx97"><img src="https://avatars3.githubusercontent.com/u/28250686?v=4" width="100px;" alt=""/><br /><sub><b>Pdx97</b></sub></a><br /><a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=pdx97" title="Code">💻</a> <a href="https://github.com/Quarantine-Projects/ISS_Info/commits?author=pdx97" title="Documentation">📖</a> <a href="#example-pdx97" title="Examples">💡</a></td> + </tr> +</table> + +<!-- markdownlint-enable --> +<!-- prettier-ignore-end --> +<!-- ALL-CONTRIBUTORS-LIST:END --> + +This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! + + + + +%prep +%autosetup -n ISS_Info-1.0.0 + +%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-ISS-Info -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +dc2258c1bea1cf442b7fdb4d273dc48e ISS_Info-1.0.0.tar.gz |