pyevr package

Subpackages

Submodules

pyevr.apis module

class pyevr.apis.AllMixin[source]

Bases: object

Mixin for API endpoint classes to have an all() method for returning objects from all pages.

Attr list_endpoint_attr

API endpoint’s method for returning paged results

Attr evr_page_param

Argument name that determines the page number

all(**kwargs)[source]

Method for going through all the pages of a list view that is responsible for returning paged results

evr_page_param = 'page'
get_list_endpoint() → Callable[source]

Method for getting the callable API’s endpoint that is responsible for returning paged results

Returns

Callable API’s list endpoint method.

list_endpoint_attr = None
class pyevr.apis.AssortmentsAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.assortments_api.AssortmentsApi

list_endpoint_attr = 'assortments_list'
class pyevr.apis.CertificatesAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.certificates_api.CertificatesApi

list_endpoint_attr = 'certificates_list'
class pyevr.apis.MeasurementUnitsAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.measurement_units_api.MeasurementUnitsApi

list_endpoint_attr = 'measurement_units_list'
class pyevr.apis.MeasurementsAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.measurements_api.MeasurementsApi

list_endpoint_attr = 'measurements_get'
class pyevr.apis.OrganizationsAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.organizations_api.OrganizationsApi

list_endpoint_attr = 'organizations_list'
class pyevr.apis.PlaceOfDeliveriesAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.place_of_deliveries_api.PlaceOfDeliveriesApi

list_endpoint_attr = 'place_of_deliveries_list'
class pyevr.apis.WaybillsAPI(api_client=None)[source]

Bases: pyevr.apis.AllMixin, pyevr.openapi_client.api.waybills_api.WaybillsApi

list_endpoint_attr = 'waybills_list'

pyevr.client module

Main module.

class pyevr.client.EVRClient(api_key: str, host: str = None)[source]

Bases: object

API client class for EVR.

Parameters
  • api_key – Company API key in EVR

  • host – EVR host. Defaults to test host (optional)

class pyevr.client.ExtendedApiClient(configuration=None, header_name=None, header_value=None, cookie=None, pool_threads=1)[source]

Bases: pyevr.openapi_client.api_client.ApiClient

Extended API client generated by openapi-generator-cli.

sanitize_for_serialization(obj)[source]

Builds a JSON POST object.

If obj is one of the subclasses of pyevr.openapi_client.models.holding_base.HoldingBase adds the corresponding type to dictionary. Otherwise returns the dictionary from pyevr.openapi_client.api_client.ApiClient

Parameters

obj – The data to serialize.

Returns

The serialized form of data.

pyevr.main module

Console script for pyevr.

Module contents

Top-level package for pyevr.