semvec/pypi-packages huggingface dataset:
password 0.2
A password attribute that stores hashes
License: BSD

---------------------------------------------------
password - hashed passwords generation utility
---------------------------------------------------

The password module offers you a single utility class called ``Password``.
This class is meant to be used as an attribute of any other object class on
which you want to store passwords in hashed mode. This module is
framework-agnostic so it is up to you to provide persistence (you need to store
'hash' and 'salt' set on the object).

Example usage
-----------------------------------------

Create your class::

    >>> import password
    >>> class User():
    ...     password = password.Password(method='sha1', hash_encoding='base64')
            # You also probably want to create 'hash' and 'salt' attributes
            # With your chosen persistence mechanism

Set a password on the object::

    >>> user = User()
    >>> user.password = 'abcdef'

You cannot read the password back::

    >>> user.password
    <password._HashedPassword object at 0x7fdba1fef990>

but you can see, that hash and salt are
set::

    >>> user.hash
    'L1Fz6aoIdIlZzoxsXPWxJq8zNTQ='
    >>> user.salt
    'VIboVvtr'

You can also check for equality with a string::

    >>> user.password == 'abcdef'
    True
    >>> user.password == '12345'
    False
Elephantoplasty 0.1
A PostgreSQL ORM
License: BSD
Keywords: orm postgresql psql pg persistence sql relational database

-----------------------
Elephantoplasty
-----------------------

This is my effort to create an ORM which would take full advantage from
PostgresSQL. It is currently under steady development.

Philosophy
---------------

#. PostgresSQL is great. However portable ORM's use it like SQLite. To use
   all features of Postgres we need to drop portability to weaker engines.
#. Simple things should be simple, complicated things should be possible.
   The ORM should guess all the obvious things, but allow to override them.
#. Where possible use pythonic EAFP strategy. If database seems to be not
   in sync with ORM try to migrate.
#. The interaction with persistent objects should be as seamless and 
   pythonic as possible

DONE
-----------------

#. Simple tables.
#. Inheritance.
#. Simplest one-to-many and many-to-one
#. Many-to-many
#. EAFP table creation
#. Simplest identities
#. Dependent and independent relations
#. Some documentation
#. Tree decorator for simple ``parent_id`` tree
#. List-like relations

TODO
------------------

#. Dict-like relations
#. Advanced primary keys
#. Concurrency control and conflict detection
#. Advanced identities
#. EAFP table migration
#. Joined loading strategy
#. Full documentation
#. MPTT trees