Skip to main content

Collection of wrapper libraries for rapid development of python applications

Project description

Documentation Status

This library is created to wrap other popular libraries and extend their functionalities for rapid development of python applications. Includes configuration management compatible with all other modules provided in pywrapid.

Extend functionality as you wish by wrapping the modules and/or inheriting the classes.

Features

pywrapid.config

Config classes that can be used through out the various pywrapid modules or as a stand alone config management util. Currently only yaml configs is supported, with more file types in the roadmap. (Feel free to contribute with additional sypport.)

We intend to at least support the following file types:
  • YAML

  • TOML*

  • INI*

  • JSON*

  • KeyValue*

(* Not implemented yet but planned)

Two general config classes is provided: ApplicationConfig and ConfigSubSection Both inherits the WrapidConfig class and exposes the configuration data as a dict under the “cfg” propery.

The ApplicationConfig class can be used to explore config location for default config location and common config location for Mac, Linux and Windows.

The exploration functionality can be used standalone using ApplicationConfig.application_config_location().

Simplicity is king and you can therefore use parts as you wish, or adopt wrapid config concept as a whole.

Dependencies

  • PyYAML

### pywrapid.webclient Extends the well known requests library. Principle behind the web client is to give you one base that can be used in the same manner regardless of the mix and match between Authorization and Authentication methods used by the API/website. If a new version of the API your client consumes comes out with a different authentication method, you should only have to instanciate a different class to match the API and have it work again.

Gives you a generic web client class you can use as a base for your client creations.

Credential types:

  • No authentication

  • Basic Auth

  • x509

Authorization types:

  • NONE

  • BASIC

  • BEARER

  • JWT

  • OAUTH2

pywrapid.log

Helper functions for setting up and controlling the defacto standard logging framework “logging”.

Allows you to easily configure logging handlers (currently only console and file) on a per module basis.

Gives your application a similar configuration principle to djangos log management, where you can control logging for each import or derived modules. You can specify different log level or formats per module and per handler. Propagation to parent will not take place for modules you specify, giving you the control, while also being able to capture undefined child loggers.

See documentation for more information.

Dependencies

  • pyjwt

Exceptions

Each sub library comes with pywrapid exceptions. The exceptions will normalize multiple wrapped libraries/tools and extend with additional generic exceptions.

Dependencies

  • pyyaml

  • requests

  • pyjwt

Needed softwares

  • python3.x

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

pywrapid-0.3.6.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

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

pywrapid-0.3.6-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file pywrapid-0.3.6.tar.gz.

File metadata

  • Download URL: pywrapid-0.3.6.tar.gz
  • Upload date:
  • Size: 53.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pywrapid-0.3.6.tar.gz
Algorithm Hash digest
SHA256 aa0e5b742b17b7218dfa6da8d4f711f313534e9250b0399ddc82e987b9987a03
MD5 57d2c47360484f3344d355fbaf1e4575
BLAKE2b-256 39df726538a753b9fa417454ca45f62e13993177fdd9a89e02369dfc21a16e82

See more details on using hashes here.

File details

Details for the file pywrapid-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: pywrapid-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pywrapid-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c4ade8c9ca9d89b2d47292b88ccab9854ec10fa90f806850cdfe72bbea3caab1
MD5 1d64607e4f9ed761b7a00acd3b5bfd7f
BLAKE2b-256 f501eaf44959b51a9ff48ce6028f0ddca22e197daa63f854ea665c64ccfe5f39

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