Skip to main content

A Python API library for Soteria, world's safest Twitter.

Project description


Pyteria

Example

import asyncio
import soteria

async def main():
    cache = soteria.MemoryCache()
    client = soteria.Client(auth="<TOKEN HERE>", cache=cache)

    # fetch a user from the api
    user = await soteria.User.fetch(client, 12345)
    print(user)

    # fetch the list of followers
    followers = await user.fetch_followers()
    print(followers)

    # you can always access the cached list of followers if async is not allowed
    print(user.followers)

    # remember to close the client after execution
    await client.close()

asyncio.run(main())

Features

  • Mostly complete coverage of the Soteria API.
  • Caching support with customiziable cache implementations.
  • Complete type safety with your favorite type checker. 🚀

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

pyteria-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

pyteria-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pyteria-0.1.0.tar.gz.

File metadata

  • Download URL: pyteria-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.0 CPython/3.12.5 Darwin/22.6.0

File hashes

Hashes for pyteria-0.1.0.tar.gz
Algorithm Hash digest
SHA256 156c20096d297e7a6ed459e20977774a25beee19e350ed30e8b1b4412131061f
MD5 8a4dcae114ea8e73ca422ae537870aeb
BLAKE2b-256 0cceb3106288384b1bc764cd03f1d0629a511cc59cad57ae969bc9965e205c75

See more details on using hashes here.

File details

Details for the file pyteria-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyteria-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.0 CPython/3.12.5 Darwin/22.6.0

File hashes

Hashes for pyteria-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb3fe32d6ff085ddf38095d9e188d18a4356485d61520d0231268263824aeb5
MD5 c6bb485b80f3c4bb23c6e8b5452001fb
BLAKE2b-256 bc81ddbfcef2c8585df8140239ec8d24e36f369d8ea26744d6bd79c3f2311814

See more details on using hashes here.

Supported by

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