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-JustFinnbarM-0.0.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

replitapi_JustFinnbarM-0.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file replitapi-JustFinnbarM-0.0.1.tar.gz.

File metadata

  • Download URL: replitapi-JustFinnbarM-0.0.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for replitapi-JustFinnbarM-0.0.1.tar.gz
Algorithm Hash digest
SHA256 54457ff9afdd615fa539bff9dc56d439264f06e55dbb6b66d722e6b32941f2f5
MD5 04c022ea1a6cd981505afac2e223145e
BLAKE2b-256 57419699a9f08b7c0e14643e042731727f9bcb6f9f22a0d5fbdeb986fdd27eb3

See more details on using hashes here.

File details

Details for the file replitapi_JustFinnbarM-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: replitapi_JustFinnbarM-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for replitapi_JustFinnbarM-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ddff4490a721ea5bcedc9ee5c6201ae5624f07175d200c9df125b6edfe83cdf
MD5 932141c6db6cbb67f930dcf1c85101cb
BLAKE2b-256 bb3b2fc12a3f0fa3cb1113b4f1551542b25ab93c4681f2f705b7b73b3690e062

See more details on using hashes here.

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