Skip to main content

A higher level of abstraction around API Endpoints.

Project description

Forecast Flows API

This package is designed as a high level of abstraction around the API endpoints associated with Samson Rock Capital's APIs.

The package provides a lightweight, clean method for interacting with the Microservices.

User Endpoints

  • create user - create_user endpoint enables user creation.
    create_user("username", "password")
    
  • login user - login_user endpoint enables user login.
    access_token = login_user("username", "password")
    
  • get user identification - get_user_identification endpoint enables authenticated users to see who else is registered.
    metadata = get_user_identification(12, access_token)
    

Forecast Flows Endpoints

  • post flows to database - post_flows_to_database endpoint enables addition of data to database.

  • get all index data from database - get_all_index_data_from_db endpoint enables extraction of all index data.

    get_all_index_data_from_db("index_name", "access_token")
    
  • get all index review data from database - get_index_review_data_from_db endpoint enables extraction of all index data for a given review.

    get_index_review_data_from_db("index_name", 2022, 3, "review_type", "access_token")
    
  • get all index review data for a single day - get_index_review_data_single_day endpoint enables extraction of all index data for a given review, on a single day.

    get_index_review_data_single_day("index_name", 2022, 3, "review_type", "2022-02-02", "access_token")
    
  • get all index review data for a date range - get_index_review_data_daterange endpoint enables extraction of all index data for a given review, in a date range.

    get_index_review_data_daterange("index_name", 2022, 3, "review_type", "2022-02-02", "2022-02-03" "access_token")
    

Announcement Endpoints

  • post announcement to database - post_announcements_to_database endpoint enables addition of data to announcement database.
  • get all announcements from database - get_all_index_announcements_from_db endpoint enables collection of all announcement data.
    get_all_index_announcements("index", "access_token")
    
  • get multiple announcements from database - get_multiple_index_announcement_data_from_db endpoint collects multiple announcements from database.
    get_multiple_index_announcement_data_from_db("index", "review_type", "access_token")
    
  • get a singular index announcement from database - get_index_announcement_data_from_db endpoint collects a singular announcement from the database.
    get_index_announcement_data_from_db("index", 2022, 3, "review_type", "access_token")
    

Date Handling Endpoints

  • post dates to database - post_dates_to_database endpoint enables addition of date data to the database.

  • get index dates from database - get_index_dates_data_from_db endpoint enables extraction of index dates.

    get_index_dates_data_from_db("index", 2022, 3, "review_type", "access_token")
    
  • get all index dates from database - get_all_index_dates_from_db endpoint enables extraction of dates for a singular index.

    get_all_index_dates_from_db("index", "access_token")
    

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

SRC_Endpoints-0.0.0.0.6.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

SRC_Endpoints-0.0.0.0.6-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file SRC_Endpoints-0.0.0.0.6.tar.gz.

File metadata

  • Download URL: SRC_Endpoints-0.0.0.0.6.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for SRC_Endpoints-0.0.0.0.6.tar.gz
Algorithm Hash digest
SHA256 5698fd9c39e1f8d2a1b6d7dad450ca723d7be5349718b43c9a4efc1bc04cd38e
MD5 dcd76d3e4563971b560c42fc1e26a833
BLAKE2b-256 cfef4a9f53ca2a7f0fd808200c7cfe5b67a52e834e68be32a9e0f16132fc316d

See more details on using hashes here.

File details

Details for the file SRC_Endpoints-0.0.0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for SRC_Endpoints-0.0.0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b59cdaefee93c7bd14c7a23f476a1b918d6f3254d33ec0fcd491ed35d86ddf08
MD5 05bd983d0630c6c5b4b70c1cb780ee6b
BLAKE2b-256 722ebffe18189d4fa45cdc341ae96248b754728b90d57de0a61b74518ab8fda1

See more details on using hashes here.

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