Skip to main content

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 it
  • send_code(phone_number, custom_data=None, verbose=False) — send a verification SMS to a phone number (international format); returns authenticationUuid doesn't work without a firebase app token!
  • send_code_v2(phone_number, verbose=False) — v2 of send code
  • verify_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 user
  • profile_weeks(user_id, verbose=False) — get the list of weeks for a user's profile
  • download_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 file
  • list_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 user
  • cancel_friend_request(user_id, verbose=False) — cancel a pending friend request
  • unfriend(user_id, verbose=False) — remove a friend
  • get_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 username
  • get_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 instance
  • get_last_checked_time() — retrieve the stored timestamp
  • get_auth_header() — returns the Firebase auth header dict for manual requests

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

retro_sdk-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

retro_sdk-0.1.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for retro_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 06326ca07af8c22df28ca0f7b9fd2d00234145fc9b0c1f9ae13256b966404ad5
MD5 c2f72f0d3bf57f0064c386e61039ffe0
BLAKE2b-256 5e262cc03178a28066fc1bd3d920702771840d7e53d1f61884697ee06a9e8f2d

See more details on using hashes here.

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

Hashes for retro_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 feb9c680484874621bc5459abcb2807c7a1fd72549d3e3cb827d6d469c6ffd27
MD5 a5e826070bd45d9e8ca5626cf61d92bb
BLAKE2b-256 083081ca5306f705192d37a59be22b8f89b22eca26f69885a3bc57c4f74dbfe9

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