Skip to main content

convenient wrappers around existing modules

Project description

wrappers provide convenient wrappers around pyquery, logging, ssl, etc.

storage

Storage class that extends dict to provide attribute access to keys:

from wrappers.storage import Storage
d = Storage(a=1, b=2)
print d.a, d['b']

ssl

Patches ssl.wrap_socket() to use TLSv1 instead of SSLv23 to resolve connection issues. Details: http://stackoverflow.com/a/24166498/41957:

from wrappers import ssl

All modules that use the built-in ssl module (e.g. requests) will work with the new settings.

pq

pq.PQ() - wrapper around the pyquery.PyQuery constructor that supports mixed-case XML tags.

logger

Performs the basicConfig() setup and uses/parses LOG_LEVEL from the environment.

Provides getLogger().

clock

Provides stopwatch-like functionality in a Clock class.

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

wrappers-0.1.8.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file wrappers-0.1.8.tar.gz.

File metadata

  • Download URL: wrappers-0.1.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wrappers-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9c7e129af4e2562bb61944a27674dcba4f8a3edfd9a8c96af7081f7dd581db2b
MD5 661c90ca595a55f5f9eb2eee659d3897
BLAKE2b-256 a68b631b7d172369efdb26fd34adb2f56233da40665b7b4e99dac11846b154fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page