Skip to main content

A python client for schemantis api

Project description

schemantis

This the documentation for the Schemantis REST API.

The schemantis package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

This python library package is generated without supporting files like setup.py or requirements files

To be able to use it, you will need these dependencies in your own package that uses this library:

  • urllib3 >= 1.25.3
  • python-dateutil
  • pydantic

Getting Started

In your own code, to use this library to connect and interact with schemantis, you can run the following:

import schemantis
from schemantis.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.schemantis.ca
# See configuration.py for a list of all supported configuration parameters.
configuration = schemantis.Configuration(
    host = "https://api.schemantis.ca"
)

# 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 API key authorization: api_key
configuration.api_key['api_key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'


# Enter a context with an instance of the API client
with schemantis.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = schemantis.DefaultApi(api_client)
    map_id = 'map_id_example' # str | The ID of the map to retrieve (optional)
    map_name = 'map_name_example' # str | The name of the map to retrieve (optional)

    try:
        # retrieve map with optional configurable formatting
        api_response = api_instance.retrieve_map_get(map_id=map_id, map_name=map_name)
        print("The response of DefaultApi->retrieve_map_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->retrieve_map_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.schemantis.ca

Class Method HTTP request Description
DefaultApi retrieve_map_get GET /retrieve-map retrieve map with optional configurable formatting
DefaultApi update_schema_post POST /update-schema update schema

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

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

schemantis-0.1.4.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

schemantis-0.1.4-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file schemantis-0.1.4.tar.gz.

File metadata

  • Download URL: schemantis-0.1.4.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for schemantis-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5cd5127497765ce70a54fb07abbb577a04df1e8ea6bad6118a131b04008e6b32
MD5 b9d15598ad81ae5d349adb45a67d7964
BLAKE2b-256 8b44991c62d872921682d1cbaa033ffba4791b2c0e2f808d35b60813164a5334

See more details on using hashes here.

File details

Details for the file schemantis-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: schemantis-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 36.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for schemantis-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 34e65b200a4b9568db7af0253d4c63b35b0bce49a7f4806ad154d1abb0448861
MD5 3ecc6df78f370611d749ecaf3774607a
BLAKE2b-256 96f0fd40289942da921aa4c5058cf94627cba28e740c26b8ec65fc3af5dff787

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