Skip to main content

Интерфейс связи ботов Tegtory с апи

Project description

sinAPI

Publish to PyPI on Release pypi python versions

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

Readme Card

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sinapi-0.2.6.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sinAPI-0.2.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for sinapi-0.2.6.tar.gz
Algorithm Hash digest
SHA256 4213d9c74e0457b3cda684ec996ab0bb53f447761be91a4ef8f23b31a5031630
MD5 e9bf596ed21a1790fe732724da3ba364
BLAKE2b-256 e2527741c97dc4fa4f8fea8501856b9feef4197b5bb8e28baa83f276bbf2a6f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sinapi-0.2.6.tar.gz:

Publisher: release.yml on sheptalo/my_sin_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sinAPI-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1e941995cd657770ec8f797fa80b46a415c4187cce74b10fc232a5806b8efa
MD5 63325591aedff6f5a2e8280aaaa87773
BLAKE2b-256 c872b3a9f151cb5493917930575b2fa2a2556a50d7ffdfc2a5b6ac4e1835dd83

See more details on using hashes here.

Provenance

The following attestation bundles were made for sinAPI-0.2.6-py3-none-any.whl:

Publisher: release.yml on sheptalo/my_sin_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page