sinAPI
Install
$ pip install sinAPI
RU
класс интерфейс для связи с апи REST,
На данный момент иидеально работает только с ботами семьи Tegtory
EN
class interface to act with REST API's
for now only work with Tegtory bots.
To get know how to create class open _models.py
Examples
Usage
from my_sin_api import SinApi
api = SinApi('YOUR API TOKEN', 'http://API.URL/')
item = api.any('NAME OF NEEDED ITEM', 'ID OF NEEDED ITEM')
print(item.name)
# eq
# requests.get('http://API.URL/NAME OF NEEDED ITEM/ID OF NEEDED ITEM',
# headers={'Authorization': "YOUR API TOKEN"})
Release files for sinAPI 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sinapi-0.2.6.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sinAPI-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / sinapi-0.2.6.tar.gz
| Download URL | sinapi-0.2.6.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4213d9c74e0457b3cda684ec996ab0bb53f447761be91a4ef8f23b31a5031630
|
|
BLAKE2b-256 checksum How to use checksums |
e2527741c97dc4fa4f8fea8501856b9feef4197b5bb8e28baa83f276bbf2a6f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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 Nov 26, 2024.
Transparency logRelease files / sinAPI-0.2.6-py3-none-any.whl
| Download URL | sinAPI-0.2.6-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b1e941995cd657770ec8f797fa80b46a415c4187cce74b10fc232a5806b8efa
|
|
BLAKE2b-256 checksum How to use checksums |
c872b3a9f151cb5493917930575b2fa2a2556a50d7ffdfc2a5b6ac4e1835dd83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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 Nov 26, 2024.
Transparency log