Интерфейс связи ботов Tegtory с апи
Project description
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"})
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sinapi-0.2.6.tar.gz.
File metadata
- Download URL: sinapi-0.2.6.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4213d9c74e0457b3cda684ec996ab0bb53f447761be91a4ef8f23b31a5031630
|
|
| MD5 |
e9bf596ed21a1790fe732724da3ba364
|
|
| BLAKE2b-256 |
e2527741c97dc4fa4f8fea8501856b9feef4197b5bb8e28baa83f276bbf2a6f8
|
Provenance
The following attestation bundles were made for sinapi-0.2.6.tar.gz:
Publisher:
release.yml on sheptalo/my_sin_api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sinapi-0.2.6.tar.gz -
Subject digest:
4213d9c74e0457b3cda684ec996ab0bb53f447761be91a4ef8f23b31a5031630 - Sigstore transparency entry: 151787666
- Sigstore integration time:
-
Permalink:
sheptalo/my_sin_api@ad43bdde5ee41faaba6faf8cde4eec5783860637 -
Branch / Tag:
refs/tags/0.2.6 - Owner: https://github.com/sheptalo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ad43bdde5ee41faaba6faf8cde4eec5783860637 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sinAPI-0.2.6-py3-none-any.whl.
File metadata
- Download URL: sinAPI-0.2.6-py3-none-any.whl
- Upload date:
- Size: 4.9 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 |
3b1e941995cd657770ec8f797fa80b46a415c4187cce74b10fc232a5806b8efa
|
|
| MD5 |
63325591aedff6f5a2e8280aaaa87773
|
|
| BLAKE2b-256 |
c872b3a9f151cb5493917930575b2fa2a2556a50d7ffdfc2a5b6ac4e1835dd83
|
Provenance
The following attestation bundles were made for sinAPI-0.2.6-py3-none-any.whl:
Publisher:
release.yml on sheptalo/my_sin_api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sinapi-0.2.6-py3-none-any.whl -
Subject digest:
3b1e941995cd657770ec8f797fa80b46a415c4187cce74b10fc232a5806b8efa - Sigstore transparency entry: 151787668
- Sigstore integration time:
-
Permalink:
sheptalo/my_sin_api@ad43bdde5ee41faaba6faf8cde4eec5783860637 -
Branch / Tag:
refs/tags/0.2.6 - Owner: https://github.com/sheptalo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ad43bdde5ee41faaba6faf8cde4eec5783860637 -
Trigger Event:
release
-
Statement type: