Skip to main content

The API client for the antipoaching platform

Project description

openapi-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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

  • API version: 0.1.0
  • Package version: 0.0.5
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >=3.6

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

Getting Started

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

import time
import openapi_client
from pprint import pprint
from openapi_client.api import default_api
from openapi_client.model.conservation_status import ConservationStatus
from openapi_client.model.defendant import Defendant
from openapi_client.model.defendant_post import DefendantPost
from openapi_client.model.http_validation_error import HTTPValidationError
from openapi_client.model.judgment import Judgment
from openapi_client.model.judgment_post import JudgmentPost
from openapi_client.model.protection_class import ProtectionClass
from openapi_client.model.source import Source
from openapi_client.model.source_category import SourceCategory
from openapi_client.model.source_post import SourcePost
from openapi_client.model.species import Species
from openapi_client.model.species_bulk_patch_result import SpeciesBulkPatchResult
# Defining the host is optional and defaults to http://localhost:8000
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "http://localhost:8000"
)



# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    species = [
        Species(
            species="species_example",
            genus="genus_example",
            family="family_example",
            order="order_example",
            _class="_class_example",
            protection_class=ProtectionClass("I"),
            conservation_status=ConservationStatus("EX"),
        ),
    ] # [Species] | 

    try:
        # Bulk Patch Species
        api_response = api_instance.bulk_patch_species_analytics_species_patch(species)
        pprint(api_response)
    except openapi_client.ApiException as e:
        print("Exception when calling DefaultApi->bulk_patch_species_analytics_species_patch: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:8000

Class Method HTTP request Description
DefaultApi bulk_patch_species_analytics_species_patch PATCH /analytics/species Bulk Patch Species
DefaultApi get_defendant_analytics_judgment_defendant_get GET /analytics/judgment/defendant Get Defendant
DefaultApi get_judgment_analytics_judgment_judgment_id_get GET /analytics/judgment/{judgment_id} Get Judgment
DefaultApi get_sources_analytics_judgment_source_get GET /analytics/judgment/source Get Sources
DefaultApi get_species_analytics_species_get GET /analytics/species Get Species
DefaultApi post_defendant_analytics_judgment_defendant_judgment_id_post POST /analytics/judgment/defendant/{judgment_id} Post Defendant
DefaultApi post_judgment_analytics_judgment_post POST /analytics/judgment Post Judgment
DefaultApi post_source_analytics_judgment_source_judgment_id_post POST /analytics/judgment/source/{judgment_id} Post Source
DefaultApi read_root_get GET / Read Root
DefaultApi search_judgments_analytics_judgment_get GET /analytics/judgment Search Judgments

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from openapi_client.api.default_api import DefaultApi
  • from openapi_client.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
import openapi_client
from openapi_client.apis import *
from openapi_client.models import *

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

passerine_client-0.0.5.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

passerine_client-0.0.5-py3-none-any.whl (89.1 kB view details)

Uploaded Python 3

File details

Details for the file passerine_client-0.0.5.tar.gz.

File metadata

  • Download URL: passerine_client-0.0.5.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for passerine_client-0.0.5.tar.gz
Algorithm Hash digest
SHA256 dce93c14af5e7078967cf971be1e79de5e7a0b95082deefeb71a1b30f4ccdf48
MD5 94e10f3e6304c2a807dba252eec0edc2
BLAKE2b-256 844e9d0957ba06481a5ae39ca9cf9dae557fce39988443040f2be92c5e991585

See more details on using hashes here.

File details

Details for the file passerine_client-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: passerine_client-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 89.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for passerine_client-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 58a52d5a8b77b45bf7a7a1406a8e2624a138fc8dfeba894f84b3a697eeb3c3ae
MD5 c98d8a4b39896857bf180964dbe7b5bf
BLAKE2b-256 678954fb903f79bcc3bde896a151fed1bc95ad9f213233400fba5231247e1c1a

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