Skip to main content

FastAPI

Project description

across.sdk.v1

Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.3.2
  • Package version: 1.0.0
  • Generator version: 7.14.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import across.sdk.v1

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import across.sdk.v1

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import across.sdk.v1
from across.sdk.v1.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to /api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = across.sdk.v1.Configuration(
    host = "/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: Authorization
configuration = across.sdk.v1.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with across.sdk.v1.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = across.sdk.v1.AuthApi(api_client)
    email = 'email_example' # str | 

    try:
        # Login
        api_response = api_instance.login(email)
        print("The response of AuthApi->login:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AuthApi->login: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /api/v1

Class Method HTTP request Description
AuthApi login POST /auth/login Login
AuthApi refresh POST /auth/refresh Refresh Token
AuthApi token POST /auth/token Token
AuthApi verify GET /auth/verify Verify
FilterApi get_filter_filter_id_get GET /filter/{filter_id} Read a filter
FilterApi get_many_filter_get GET /filter/ Read filters(s)
GroupApi get_group GET /group/{group_id} Read a group
GroupApi remove_user DELETE /group/{group_id}/user/{user_id} Remove a user from a group
GroupInviteApi delete_invite DELETE /group/{group_id}/invite/{invite_id} Delete a group invite
GroupInviteApi get_invite GET /group/{group_id}/invite/{invite_id} Read a group invite
GroupInviteApi get_invites GET /group/{group_id}/invite Read group invites
GroupInviteApi send_invite POST /group/{group_id}/invite Create and send a group invite
GroupRoleApi assign_to_user PUT /group/{group_id}/user/{user_id}/role/{group_role_id} Assign a group role to a user
GroupRoleApi create_group_role POST /group/{group_id}/role Create a group role
GroupRoleApi delete_group_role DELETE /group/{group_id}/role/{group_role_id} Delete a group role
GroupRoleApi get_group_role GET /group/{group_id}/role/{group_role_id} Read a group role
GroupRoleApi get_group_roles GET /group/{group_id}/role Read group roles
GroupRoleApi remove_from_user DELETE /group/{group_id}/user/{user_id}/role/{group_role_id} Remove a group role from a user
GroupRoleApi update_group_role PUT /group/{group_id}/role/{group_role_id} Update a group role
InstrumentApi get_instrument GET /instrument/{instrument_id} Read an instrument
InstrumentApi get_instruments GET /instrument/ Read instruments(s)
InternalApi get_service_account GET /service-account/{service_account_id} Get a system service account
InternalApi service_account_rotate_key PATCH /service-account/{service_account_id}/rotate_key Rotate a service account key
ObservationApi get_observation GET /observation/{observation_id} Read an observation
ObservationApi get_observations GET /observation/ Read observations(s)
ObservatoryApi get_observatories GET /observatory/ Read observatory(s)
ObservatoryApi get_observatory GET /observatory/{observatory_id} Read an observatory
PermissionApi get_permissions GET /permission/ Read permissions
ScheduleApi create_many_schedules POST /schedule/bulk Create many Schedules
ScheduleApi create_schedule POST /schedule/ Create a Schedule
ScheduleApi get_schedule GET /schedule/{schedule_id} Read a schedule
ScheduleApi get_schedules GET /schedule/ Read schedule(s)
ScheduleApi get_schedules_history GET /schedule/history Read schedule(s)
ServiceAccountApi assign_to_service_account POST /user/{user_id}/service-account/{service_account_id}/group-role/{group_role_id} Assign group role
ServiceAccountApi create_user_service_account POST /user/{user_id}/service_account/ Create a service account
ServiceAccountApi delete_user_service_account DELETE /user/{user_id}/service_account/{service_account_id} Delete a service_account
ServiceAccountApi get_service_accounts GET /user/{user_id}/service_account/ Read service accounts
ServiceAccountApi get_user_service_account GET /user/{user_id}/service_account/{service_account_id} Read a service account
ServiceAccountApi remove_from_service_account DELETE /user/{user_id}/service-account/{service_account_id}/group-role/{group_role_id} Remove group role
ServiceAccountApi update_user_service_account PATCH /user/{user_id}/service_account/{service_account_id} Update a service account
ServiceAccountApi user_service_account_rotate_key PATCH /user/{user_id}/service_account/{service_account_id}/rotate_key Rotate a service account key
TLEApi create_tle POST /tle/ Create a TLE
TelescopeApi get_telescope GET /telescope/{telescope_id} Read an telescope
TelescopeApi get_telescopes GET /telescope/ Read telescopes(s)
ToolsApi calculate_joint_windows_tools_visibility_calculator_windows_get GET /tools/visibility-calculator/windows/ Calculated Joint Visibility Windows
ToolsApi calculate_joint_windows_tools_visibility_calculator_windows_get_0 GET /tools/visibility-calculator/windows/ Calculated Joint Visibility Windows
ToolsApi calculate_windows_tools_visibility_calculator_windows_instrument_id_get GET /tools/visibility-calculator/windows/{instrument_id} Calculated Visibility Windows
ToolsApi calculate_windows_tools_visibility_calculator_windows_instrument_id_get_0 GET /tools/visibility-calculator/windows/{instrument_id} Calculated Visibility Windows
ToolsApi resolve_tools_resolve_object_get GET /tools/resolve-object/ Resolve an object name
ToolsApi resolve_tools_resolve_object_get_0 GET /tools/resolve-object/ Resolve an object name
UserApi accept_invite PATCH /user/{user_id}/invite/{invite_id} Accept a group invitation
UserApi create_user POST /user/ Create a user
UserApi decline_invite DELETE /user/{user_id}/invite/{invite_id} Decline a group invitation
UserApi delete_user DELETE /user/{user_id} Deactivate a user
UserApi get_group_invites GET /user/{user_id}/invite Read a user's group invites
UserApi get_user GET /user/{user_id} Read a user
UserApi leave_group DELETE /user/{user_id}/group/{group_id} Leave a group
UserApi update_user PATCH /user/{user_id} Update a user

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

Authorization

  • Type: Bearer authentication

ServiceAccountAuthorization

  • Type: HTTP basic authentication

Author

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

across_server_openapi_python-1.2.0.tar.gz (87.3 kB view details)

Uploaded Source

Built Distribution

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

across_server_openapi_python-1.2.0-py3-none-any.whl (203.2 kB view details)

Uploaded Python 3

File details

Details for the file across_server_openapi_python-1.2.0.tar.gz.

File metadata

File hashes

Hashes for across_server_openapi_python-1.2.0.tar.gz
Algorithm Hash digest
SHA256 acfcefd00c1b0f94d98a64b8d1c99b1d538072ed21c021148ca7c6502d9270ae
MD5 c99ee3f72fc21274f7cd21dee5b68fd9
BLAKE2b-256 cb13f40824878ee328696f9966a79f68df3a027b76d239450f46c288272d8092

See more details on using hashes here.

Provenance

The following attestation bundles were made for across_server_openapi_python-1.2.0.tar.gz:

Publisher: publish-to-pypi.yml on NASA-ACROSS/across-server-openapi-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file across_server_openapi_python-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for across_server_openapi_python-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa03625fb64fefe7bf36426734b13fe02b4bceb59b4d0fcabefd8184f47c3b30
MD5 35067946129f99fcd0dbd6764ddd0c49
BLAKE2b-256 2f3423653995201f35195335c9404c785555ee32504e2e7c6d84b36dd317cb97

See more details on using hashes here.

Provenance

The following attestation bundles were made for across_server_openapi_python-1.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on NASA-ACROSS/across-server-openapi-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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