Skip to main content

Python module made by jebbarbas

Project description

jebpy

This module contains more modules that help you doing difficult task

instalation

pip install jebpy

input_types

Different types of input() to capture in the console, capture the type of data that you want without write convertions nor try/except blocks to prevent the user to write a different type of data that the one you want. Contains:

  • input_str (function)
  • input_str_required (function)
  • input_int (function)
  • input_float (function)
  • input_bool (function)
  • input_yesno (function)

is_string

Check if the given string is an email, password, #HEX color and more without write any conditionals or regex expressions. (Uses module re) Contains:

  • is_custom (function)
  • is_phone_number (function)
  • is_email (function)
  • is_password (function)
  • is_hex_color_3 (function)
  • is_hex_color_6 (function)

password_generator

Generate a random string of the length that you want. (Uses module random) Contains:

  • generate_password (function)

percentage

Introduces the PercentageVar, a special type of variable to use percentages and probabilities, also includes the WeightOption to use in the WeightSelector, to make random choices based in weights, you can also roll a dice() or flip a coin(). (Uses module random) Contains:

  • PerVar (class)
  • WeightOption (class)
  • WeightSelector (class)
  • dice (function)
  • coin (function)

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

jebpy-1.0.0.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file jebpy-1.0.0.tar.gz.

File metadata

  • Download URL: jebpy-1.0.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for jebpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f6f37f4748af3667accf58a963291f61d2c7271001280bbeaccf2b04574d8b2e
MD5 68fc17d18191145eddb1c6d157ed546b
BLAKE2b-256 63be7e947faf053091ef1c803579ee6354d2259a5dd927d4db340d37e0fcac4a

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