Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyteria

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyteria

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

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

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. 🚀

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc