From 6b77630fc44d6923ade9626ba935fb93452c36af Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 04:44:47 +0000 Subject: automatic import of python-valorant --- .gitignore | 1 + python-valorant.spec | 291 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 293 insertions(+) create mode 100644 python-valorant.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..dbb8a69 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/valorant-1.0.4.tar.gz diff --git a/python-valorant.spec b/python-valorant.spec new file mode 100644 index 0000000..6866c5d --- /dev/null +++ b/python-valorant.spec @@ -0,0 +1,291 @@ +%global _empty_manifest_terminate_build 0 +Name: python-valorant +Version: 1.0.4 +Release: 1 +Summary: Complete Python interface for the Valorant API. Works right out of the box! +License: MIT +URL: https://github.com/frissyn/valorant.py +Source0: https://mirrors.aliyun.com/pypi/web/packages/d6/3a/7b8141b407f1756a93a62021a583d72a9a5a6b6069e00bd012d26b0f9458/valorant-1.0.4.tar.gz +BuildArch: noarch + + +%description +# valorant.py + +[![Actions](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ffrissyn%2Fvalorant.py%2Fbadge%3Fref%3Dmaster&style=flat-square)](https://actions-badge.atrox.dev/frissyn/valorant.py/goto?ref=master) +[![PyPI](https://img.shields.io/pypi/v/valorant?style=flat-square)](https://pypi.python.org/pypi/valorant) +[![Downloads](https://img.shields.io/pypi/dm/valorant?style=flat-square)](https://pepy.tech/project/valorant) +![LICENSE](https://img.shields.io/github/license/frissyn/valorant.py?style=flat-square) +[![Discord](https://img.shields.io/badge/discord-join-7389D8?style=flat-square&logo=discord)](https://discord.gg/b3qjk4epPr) + +`valorant.py` is an unofficial API wrapper for Riot Games' Valorant API endpoints. It's modern, easy to use, feature-rich, and intuitive! + +## Features + ++ **Simple:** High-level abstraction of API interactions; easy to use and easy to customize. + ++ **Lightweight:** Doesn't rely on any external dependencies, minimal package size. + ++ **Extensive:** Covers all Valorant related endpoints from the Riot Games API. Also includes Account coverage. + ++ **Fast:** HTTP requests and object instancing optimized to use minimal resources and complete tasks quickly! + ++ **Intuitive:** Complete auto-completion, docstrings, and type-hinting for all library objects and variables. + +## Installation + +`valorant.py` requires Python 3.8 or higher. + +|Manager |Command | +|:----------:|:------------------------| +|PIP |`pip install valorant` | +|Poetry |`poetry add valorant` | + +## Usage + +Take a look at the [`examples/`](https://github.com/frissyn/valorant.py/blob/master/examples) folder for more usage snippets! + +**Quickstart:** + +```python +import valorant + +KEY = "RGAPI-Key-Here" +client = valorant.Client(KEY) + +agents = client.get_characters() + +print(agents.get("Viper")) +``` + +**Local Client:** + +```python +import valorant + +client = valorant.LocalClient() + +print(client.get_session()) +``` + +**NOTE:** *The Local Client interacts with the Client API that Valorant uses while the game is running on your system. This means access to current player, friend requests, shop, etc. The Local Client is currently unstable. `valorant.py` is not liable for any punishment you may recieve should you use its tools to break Valorant ToS. (i.e Auto-Agent Selection)* + +## Documentation + +The public API documentation for `valorant.py` is hosted on [ReadTheDocs.io](https://valorantpy.readthedocs.io/en/latest/). + +Use `bash bin/docs` to start the documentation server locally. This uses Ruby's `WEBrick` gem. + +## Help and Questions + +Have a bug or issue? Need help with the API? Open an [issue](https://github.com/frissyn/valorant.py/issues) or hop in the [#valorant-py](https://discord.gg/b3qjk4epPr) channel of the Frisscraft Community Discord Server. + +## Contributing + +Head over to the [**Contributing Guide**](https://github.com/frissyn/valorant.py/blob/master/.github/CONTRIBUTING.md) page. + + +%package -n python3-valorant +Summary: Complete Python interface for the Valorant API. Works right out of the box! +Provides: python-valorant +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-valorant +# valorant.py + +[![Actions](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ffrissyn%2Fvalorant.py%2Fbadge%3Fref%3Dmaster&style=flat-square)](https://actions-badge.atrox.dev/frissyn/valorant.py/goto?ref=master) +[![PyPI](https://img.shields.io/pypi/v/valorant?style=flat-square)](https://pypi.python.org/pypi/valorant) +[![Downloads](https://img.shields.io/pypi/dm/valorant?style=flat-square)](https://pepy.tech/project/valorant) +![LICENSE](https://img.shields.io/github/license/frissyn/valorant.py?style=flat-square) +[![Discord](https://img.shields.io/badge/discord-join-7389D8?style=flat-square&logo=discord)](https://discord.gg/b3qjk4epPr) + +`valorant.py` is an unofficial API wrapper for Riot Games' Valorant API endpoints. It's modern, easy to use, feature-rich, and intuitive! + +## Features + ++ **Simple:** High-level abstraction of API interactions; easy to use and easy to customize. + ++ **Lightweight:** Doesn't rely on any external dependencies, minimal package size. + ++ **Extensive:** Covers all Valorant related endpoints from the Riot Games API. Also includes Account coverage. + ++ **Fast:** HTTP requests and object instancing optimized to use minimal resources and complete tasks quickly! + ++ **Intuitive:** Complete auto-completion, docstrings, and type-hinting for all library objects and variables. + +## Installation + +`valorant.py` requires Python 3.8 or higher. + +|Manager |Command | +|:----------:|:------------------------| +|PIP |`pip install valorant` | +|Poetry |`poetry add valorant` | + +## Usage + +Take a look at the [`examples/`](https://github.com/frissyn/valorant.py/blob/master/examples) folder for more usage snippets! + +**Quickstart:** + +```python +import valorant + +KEY = "RGAPI-Key-Here" +client = valorant.Client(KEY) + +agents = client.get_characters() + +print(agents.get("Viper")) +``` + +**Local Client:** + +```python +import valorant + +client = valorant.LocalClient() + +print(client.get_session()) +``` + +**NOTE:** *The Local Client interacts with the Client API that Valorant uses while the game is running on your system. This means access to current player, friend requests, shop, etc. The Local Client is currently unstable. `valorant.py` is not liable for any punishment you may recieve should you use its tools to break Valorant ToS. (i.e Auto-Agent Selection)* + +## Documentation + +The public API documentation for `valorant.py` is hosted on [ReadTheDocs.io](https://valorantpy.readthedocs.io/en/latest/). + +Use `bash bin/docs` to start the documentation server locally. This uses Ruby's `WEBrick` gem. + +## Help and Questions + +Have a bug or issue? Need help with the API? Open an [issue](https://github.com/frissyn/valorant.py/issues) or hop in the [#valorant-py](https://discord.gg/b3qjk4epPr) channel of the Frisscraft Community Discord Server. + +## Contributing + +Head over to the [**Contributing Guide**](https://github.com/frissyn/valorant.py/blob/master/.github/CONTRIBUTING.md) page. + + +%package help +Summary: Development documents and examples for valorant +Provides: python3-valorant-doc +%description help +# valorant.py + +[![Actions](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ffrissyn%2Fvalorant.py%2Fbadge%3Fref%3Dmaster&style=flat-square)](https://actions-badge.atrox.dev/frissyn/valorant.py/goto?ref=master) +[![PyPI](https://img.shields.io/pypi/v/valorant?style=flat-square)](https://pypi.python.org/pypi/valorant) +[![Downloads](https://img.shields.io/pypi/dm/valorant?style=flat-square)](https://pepy.tech/project/valorant) +![LICENSE](https://img.shields.io/github/license/frissyn/valorant.py?style=flat-square) +[![Discord](https://img.shields.io/badge/discord-join-7389D8?style=flat-square&logo=discord)](https://discord.gg/b3qjk4epPr) + +`valorant.py` is an unofficial API wrapper for Riot Games' Valorant API endpoints. It's modern, easy to use, feature-rich, and intuitive! + +## Features + ++ **Simple:** High-level abstraction of API interactions; easy to use and easy to customize. + ++ **Lightweight:** Doesn't rely on any external dependencies, minimal package size. + ++ **Extensive:** Covers all Valorant related endpoints from the Riot Games API. Also includes Account coverage. + ++ **Fast:** HTTP requests and object instancing optimized to use minimal resources and complete tasks quickly! + ++ **Intuitive:** Complete auto-completion, docstrings, and type-hinting for all library objects and variables. + +## Installation + +`valorant.py` requires Python 3.8 or higher. + +|Manager |Command | +|:----------:|:------------------------| +|PIP |`pip install valorant` | +|Poetry |`poetry add valorant` | + +## Usage + +Take a look at the [`examples/`](https://github.com/frissyn/valorant.py/blob/master/examples) folder for more usage snippets! + +**Quickstart:** + +```python +import valorant + +KEY = "RGAPI-Key-Here" +client = valorant.Client(KEY) + +agents = client.get_characters() + +print(agents.get("Viper")) +``` + +**Local Client:** + +```python +import valorant + +client = valorant.LocalClient() + +print(client.get_session()) +``` + +**NOTE:** *The Local Client interacts with the Client API that Valorant uses while the game is running on your system. This means access to current player, friend requests, shop, etc. The Local Client is currently unstable. `valorant.py` is not liable for any punishment you may recieve should you use its tools to break Valorant ToS. (i.e Auto-Agent Selection)* + +## Documentation + +The public API documentation for `valorant.py` is hosted on [ReadTheDocs.io](https://valorantpy.readthedocs.io/en/latest/). + +Use `bash bin/docs` to start the documentation server locally. This uses Ruby's `WEBrick` gem. + +## Help and Questions + +Have a bug or issue? Need help with the API? Open an [issue](https://github.com/frissyn/valorant.py/issues) or hop in the [#valorant-py](https://discord.gg/b3qjk4epPr) channel of the Frisscraft Community Discord Server. + +## Contributing + +Head over to the [**Contributing Guide**](https://github.com/frissyn/valorant.py/blob/master/.github/CONTRIBUTING.md) page. + + +%prep +%autosetup -n valorant-1.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-valorant -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 1.0.4-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..27a24be --- /dev/null +++ b/sources @@ -0,0 +1 @@ +3f7fbdefb39af19bb701a3e250f9dec9 valorant-1.0.4.tar.gz -- cgit v1.2.3