UNOFFICIAL API client for Silpo (Ukrainian supermarket chain)
Project description
PySilpo
UNOFFICIAL API client for Silpo (Ukrainian supermarket chain)
Documentation
.
Report Bug
·
Request Feature
Installation
Use the package manager pip to install PySilpo.
pip install pysilpo
Usage
Get authorized user cheques
from pysilpo import Silpo
from datetime import datetime
silpo = Silpo(phone_number="+380123456789")
cheques = silpo.cheque.all(
date_from=datetime(2024, 7, 19), date_to=datetime(2024, 8, 19)
)
for cheque in cheques:
print(cheque.sum_balance)
print(cheque.detail.positions)
Get Silpo products
from pysilpo import Silpo
for product in Silpo.product.all():
print(product.title)
Change Log
2.0.0
- Added OpenID OTP authorization support with cached session and token refresh mechanism
- Cheque API now more clear and using RestFul API
- Debug mode now supported!
0.1.2
- Fix:
APIClient.get
might return None
0.1.1
- Silpo changed API domain to graphql.silpo.ua
0.1.0
- Initial release
- Added support for new resource
Cheque History
,Cheque Detail
andUser Info
- Added
README.md
file
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the Apache2 License. See LICENSE
for more information.
Contact
If you have any questions, feel free to contact me via email: ivan@simantiev.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pysilpo-1.0.0.tar.gz
.
File metadata
- Download URL: pysilpo-1.0.0.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f07ae5902cb741ad65f333c9ab15687ab327a8eda80ec461c4ef047fbe3283fe |
|
MD5 | 4ef9d675ac0e45384a1716540cf40b22 |
|
BLAKE2b-256 | 908b8293e0194f07f8a0ac1500b1d8816e7ac889251e2078398b80ac1c931539 |
Provenance
The following attestation bundles were made for pysilpo-1.0.0.tar.gz
:
Publisher:
publish-package.yml
on iYasha/pysilpo
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pysilpo-1.0.0.tar.gz
- Subject digest:
f07ae5902cb741ad65f333c9ab15687ab327a8eda80ec461c4ef047fbe3283fe
- Sigstore transparency entry: 147956563
- Sigstore integration time:
- Predicate type:
File details
Details for the file pysilpo-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pysilpo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b9934508fe9b0bc7a87c0bfaae6fbfef723ca8efa57835f6c0f4f833326995 |
|
MD5 | fff5f4051d5b5f9c043dbf3dedae7bd0 |
|
BLAKE2b-256 | 70f40fb3a1aa9f3d75182153090da019dfcf507c369c7371bffa33770f37fa5b |
Provenance
The following attestation bundles were made for pysilpo-1.0.0-py3-none-any.whl
:
Publisher:
publish-package.yml
on iYasha/pysilpo
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pysilpo-1.0.0-py3-none-any.whl
- Subject digest:
c7b9934508fe9b0bc7a87c0bfaae6fbfef723ca8efa57835f6c0f4f833326995
- Sigstore transparency entry: 147956564
- Sigstore integration time:
- Predicate type: