epicstore-api-0.1.6
توضیحات
An API wrapper for Epic Games Store written in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | epicstore-api-0.1.6 |
| نام | epicstore-api |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | SD4RK |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/SD4RK/epicstore_api |
| آدرس اینترنتی | https://pypi.org/project/epicstore-api/ |
| مجوز | MIT |
# epicstore_api
[](https://pypi.org/project/epicstore-api/)
[](https://pypi.org/project/epicstore-api/)
[](https://pypi.org/project/epicstore-api/)
An unofficial library to work with Epic Games Store Web API.
## Installing
**Python 3.6 or higher is required**
To install the library you can just run the following command:
``` sh
# Linux/macOS
python3 -m pip install -U epicstore_api
# Windows
py -3 -m pip install -U epicstore_api
```
### Quick Example
``` py
api = EpicGamesStoreAPI()
namespace, slug = list(api.get_product_mapping().items())[0]
first_product = api.get_product(slug)
offers = []
for page in first_product['pages']:
if page.get('offer') is not None:
offers.append(OfferData(page['namespace'], page['offer']['id']))
offers_data = api.get_offers_data(*offers)
for offer_data in offers_data:
data = offer_data['data']['Catalog']['catalogOffer']
developer_name = ''
for custom_attribute in data['customAttributes']:
if custom_attribute['key'] == 'developerName':
developer_name = custom_attribute['value']
print('Offer ID:', data['id'], '\nDeveloper Name:', developer_name)
```
You can find more examples in the examples directory.
### Contributing
Feel free to contribute by creating PRs and sending your issues
## Links
* [Documentation](https://epicstore-api.readthedocs.io/en/latest/)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl epicstore-api-0.1.6:
pip install epicstore-api-0.1.6.whl
نصب پکیج tar.gz epicstore-api-0.1.6:
pip install epicstore-api-0.1.6.tar.gz