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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replitapi-0.0.1.tar.gz.
File metadata
- Download URL: replitapi-0.0.1.tar.gz
- Upload date:
- Size: 8.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae5627cc5a631ae0b9f912c5c50b692b9dc3ca786ca08adb5b8523c6712776d9
|
|
| MD5 |
67e7fbf98288f4d4f1e7f631cbf30122
|
|
| BLAKE2b-256 |
98e63ce46f13c63788abc2fb751bbe1196a9a02167b3444728e6432b71f5e32f
|
File details
Details for the file replitapi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: replitapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b454a7a1df3d4c6775d253d1893472f262f4c8d3589b7d118d0cc4e1401ad32c
|
|
| MD5 |
cfb2bbfc12c642121f09cb908bc0731e
|
|
| BLAKE2b-256 |
7043445efaf4534301ff66166bbdc3b4c99bbed39e12fe66694c3f1f4a0f64fc
|