UNOFFICIAL API client for Silpo (Ukrainian supermarket chain)
Documentation
.
Report Bug
·
Request Feature
Use the package manager pip to install PySilpo.
pip install pysilpo
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)
from pysilpo import Silpo
for product in Silpo.product.all():
print(product.title)
- 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!
- Fix:
APIClient.get
might return None
- Silpo changed API domain to graphql.silpo.ua
- Initial release
- Added support for new resource
Cheque History
,Cheque Detail
andUser Info
- Added
README.md
file
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
Distributed under the Apache2 License. See LICENSE
for more information.
If you have any questions, feel free to contact me via email: ivan@simantiev.com