Skip to main content

Python secretaries you call at will, for instant py-relief.

Project description

Build Status Coverage Status

A collection of tools that support a busy project based on Python >= 3.6.


John is the Battler. He will serve the necessary files needed to run thepysec.


Lia is here to take a detailed look at your strings.

  • pop_wsp: Remove extra whitespace.
  • pre_slug: Prepare a string to become a wise slug.
    • 'r33a!bc' -> 'r 33 abc'.
  • fast_pre_slug: Prepare a string to become a fast slug.
    • 'r33a!bc' -> 'r 3 3 a bc'.
  • cap_sentence: Carefully capitalize first letter and remove white space
    • "O'Connor is        INVITED to UK" -> "O'Connor Is Invited To UK"


Matina performs operations on django model instances

  • pop_i18n_wsp: Apply pop_wsp for a list of fields in a given model instance.


Myriam a mathematical kind of jelly roll.

  • validate_overlap: Receives a list of DateRange or DateTimeRange and examines if contents overlap.


Thanos is a Django test assistant

  • get_formset_alive: Receives a formset class with data dictionary and returns a formset instance.


A pythonista who slightly bends the borders of the language

  • deep_getattr: Dives in an object by performing successive getattrs for each word in a dotted string.
  • deep_get: Dives in a dictionary by performing successive getats for each word in a dotted string.

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

thepysec-2.2.tar.gz (9.3 kB view hashes)

Uploaded source

Built Distribution

thepysec-2.2-py3-none-any.whl (10.5 kB view hashes)

Uploaded py3

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