Skip to main content

Contributors Forks Stargazers Issues MIT License


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 and User 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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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

Metadata

Release files for pysilpo 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysilpo 1.0.2
File Size Uploaded
pysilpo-1.0.2.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysilpo 1.0.2
File Interpreter ABI Platform
pysilpo-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 54.3 kB

Release files / pysilpo-1.0.2.tar.gz

Download URL pysilpo-1.0.2.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d4f568823869bef016dc0aa5f8dfcc5f36ca44c45431d92cd26287007aad988
BLAKE2b-256 checksum
How to use checksums
563c85cce184b3867c722c2a56421fb3dba7315ed259a258753229f024097b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 16, 2025.

Transparency log

Release files / pysilpo-1.0.2-py3-none-any.whl

Download URL pysilpo-1.0.2-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
185afecd85723922a4080d73f3815e9eaf29499e9ae5038bfde6edf3e6a00c0b
BLAKE2b-256 checksum
How to use checksums
9bc351c6a00455e50e0f6fb5fa4fca16c3b0cb7ad28e7458a07e13cf8b7dcf66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 16, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page