python sdk for retro, the photo sharing app!
Project description
retro sdk
this is an sdk to use the internal retro apis with python!
the functions available are:
authentication
get_refresh_token(token, verbose=False)— exchange a custom token for a refresh token and store itdoesn't work without a firebase app token!send_code(phone_number, custom_data=None, verbose=False)— send a verification SMS to a phone number (international format); returnsauthenticationUuidsend_code_v2(phone_number, verbose=False)— v2 of send codeverify_code(code, authenticationUuid=None, verbose=False)— verify the SMS code and authenticate the session
profile & account
set_username(username, verbose=False)— set the username for the authenticated userprofile_weeks(user_id, verbose=False)— get the list of weeks for a user's profiledownload_profile_photo(user_id, filename, output_path)— download a user's profile photo to a local file
media
get_media_metadata(user_id, week, filename)— get metadata for a specific media filelist_files_in_folder(user_id, week)— list all files in a user's week folder (raw response)get_filenames_in_folder(user_id, week)— get just the filenames in a user's week folder - only works if you're logged in as the user you're checking!download_media_file(user_id, week, filename, output_path)— download a media file to a local path
friends
send_friend_request(user_id, verbose=False)— send a friend request to a usercancel_friend_request(user_id, verbose=False)— cancel a pending friend requestunfriend(user_id, verbose=False)— remove a friendget_people_you_may_also_know(user_id, verbose=False)— get suggested friends for a user
search
search_users(username, page=0)— search for users by usernameget_user_id_from_username(username)— look up a user's ID from their username
utilities
set_last_checked_time(time)— store a timestamp on the client instanceget_last_checked_time()— retrieve the stored timestampget_auth_header()— returns the Firebase auth header dict for manual requests
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
retro_sdk-0.1.2.tar.gz
(4.0 kB
view details)
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 retro_sdk-0.1.2.tar.gz.
File metadata
- Download URL: retro_sdk-0.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06326ca07af8c22df28ca0f7b9fd2d00234145fc9b0c1f9ae13256b966404ad5
|
|
| MD5 |
c2f72f0d3bf57f0064c386e61039ffe0
|
|
| BLAKE2b-256 |
5e262cc03178a28066fc1bd3d920702771840d7e53d1f61884697ee06a9e8f2d
|
File details
Details for the file retro_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: retro_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feb9c680484874621bc5459abcb2807c7a1fd72549d3e3cb827d6d469c6ffd27
|
|
| MD5 |
a5e826070bd45d9e8ca5626cf61d92bb
|
|
| BLAKE2b-256 |
083081ca5306f705192d37a59be22b8f89b22eca26f69885a3bc57c4f74dbfe9
|