Skip to main content

Tools for interacting with the replit site and database that do not depend on an ancient version of Flask.

Project description

Replit API

Database

Works exactly the same as the official implementation, but doesn't depend on Flask 1.1.2! See the official docs: https://replit-py.readthedocs.io/en/latest/api.html#module-replit.database

Web scraper

get_user_data(query, mode = "username")

mode - What to query by. Can be "username" or "url".

query - The item to look for. Must be in format with the mode.

Returns:

LiteralObject({ # LiteralObject just behaves like a class for this purpose. Keys = Attributes.
    "favourite_langauges": [str(languages)],
    "cycles": int(cycles),
    "profile_picture": str(img_url)
  })
get_repl_data(query, user = "", mode = "name")

mode - What to query by. Can be "name" or "url".

user - Specifies the user to search for if the mode is "name". Can be ommited if the mode is "url".

query - The item to look for. Must be in format with the mode.

Returns:

LiteralObject({ # LiteralObject just behaves like a class for this purpose. Keys = Attributes.
    "favourite_langauges": [str(languages)],
    "cycles": int(cycles),
    "profile_picture": str(img_url)
  })

More to come!

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

replitapi-0.0.1.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

replitapi-0.0.1-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

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