Skip to main content

general python features that don't come with it.

Reason this release was yanked:

OLD

Project description

PyLib - General

This is a package that will be updated whenever I get an idea that I like and write it.

So far, I have:

  • Properties

Properties

This can be used like:

from pylib_general import properties

This loads the Property class, which can be used like:

varname = properties.Property()

The property class's functions are:

  • varname.add(name, val)

name being the name of the new value (cannot contain spaces), and val being the value.

  • varname.remove(name) name being the name of the value to remove

  • varname.get(name) returns the value of name

The difference between Property and other sets is that you can get a property in a much easier way:

varname.attr

Obviously, you can also get a value through varname.get(name) but you could also do varname.name

Ex:

varname = Property().add("somenamenotcontainingnumbersorspaces", "12233090")
print(varname.somenamenotcontainingnumbersorspaces)

prints 12233090

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

pylib-general-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

pylib_general-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file pylib-general-0.1.0.tar.gz.

File metadata

  • Download URL: pylib-general-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pylib-general-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1483e672798aa78c6691158e819280a381c2c12f2dfb28fb944c2f04f72fa545
MD5 7b07c4cf4694c753244b274c9bfdba3a
BLAKE2b-256 c4121ca3a4903accc079fe8f6b9a05c91b0a9bd70ac721ffb88d30e64f10ba2b

See more details on using hashes here.

File details

Details for the file pylib_general-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pylib_general-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pylib_general-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e64e68e0318a2edd86fea68540cde9b86f678a9247bac64d5d43f36575f8700e
MD5 1d11a728e5cd4a922fa74335978c6f08
BLAKE2b-256 3e753016bdffcffd752787c10bf0948b38c96be83665860de5eca92056a0aae6

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