Skip to main content

OculusD Python Commons Library

Project description

OculusD Client Libraries - Common Libraries

These libraries are supporting libraries for other OculusD.com Inc projects.

More details and documentation will follow in the near future.

This is an initial development effort in very early stages (Alpha) and no guarantees are made in terms of production readiness at this stage.

Installation

Quick Install

Using pip:

$ pip install odc-pycommons

Installation from Source

As with most other GitHub projects, the basic steps of clone, build and install should be followed. Below is a very simple example:

$ git clone https://github.com/oculusd/odc_pycommons.git
$ cd odc_pycommons
$ python3 setup.py sdist
$ pip3 install dist/odc_pycommons-0.0.1.tar.gz

Debugging

You can enable debugging be setting the environment variable DEBUG to anything else than '0'. On Linux, you can accomplish this by running the following at the command prompt: $ export DEBUG=1.

Below is a simple example of the output that will now be printed to STDOUT:

>>> from odc_pycommons.models import CommsRequest, CommsRestFulRequest, CommsResponse
* debug enabled
>>> from odc_pycommons.comms import get
>>> req = CommsRequest(uri='https://www.york.ac.uk/teaching/cws/wws/webpage1.html')
>>> resp = get(request=req)
* debugging GET request
send: b'GET /teaching/cws/wws/webpage1.html HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: www.york.ac.uk\r\nUser-Agent: Python-urllib/3.7\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date header: Server header: Accept-Ranges header: Cache-Control header: Expires header: Vary header: X-Frame-Options header: Content-Length header: Connection header: Content-Type 
>>> resp.response_code
200

Third Party Dependencies

The following third party libraries are used in this project:

Please refer to the various third party suppliers home pages for specific licensing information.

Installation:

$ pip3 install email-validator pyyaml

Need more help?

Try one of these resources:

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

odc_pycommons-0.3.2.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file odc_pycommons-0.3.2.tar.gz.

File metadata

  • Download URL: odc_pycommons-0.3.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for odc_pycommons-0.3.2.tar.gz
Algorithm Hash digest
SHA256 926a8ffddc470592885ace37ca4ede4a2e720cd8a68d6d68d90cef3f955f485c
MD5 be0643e004fa330e5ceee1acb1cfe698
BLAKE2b-256 cdbe6e003ecf8ce63d170c40c5745155f2276e7c698391262668ec1f271270cb

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