Skip to main content

Pydeas

Pydeas is a Python library for dealing in an efficent way with information storage.

Installation

Use the package manager pip to install Pydeas

pip install pydeas

Get Started

This library is based on pandas and memorize the information in csv files, the database is relational but you can work with multiple folders and files, in this way you can create a dynamic and comprehensible db structure.

from pydeas import PydeasDB



def db() -> None:

    main_folder = PydeasDB.Folder('Database') # create the main folder in the current folder

    password_file = main_folder.create_file('passwords') # create a 'passwords' file in the main folder

    password_file.add_columns(['App', 'Email', 'Username', 'Password']) # add the column to the table of the file

Now we created a "passwords.csv" in the database folder, and configured the file adding columns; we can now start working with Pydeas

Output in ./Database/passwords.csv

#,App,Email,Username,Password

Add an element to the table

password_file.add_row(['Github', 'myemail@io.com', 'Foo', 'Bar']) # add a row to the table of the file

Output in ./Database/passwords.csv

#,App,Email,Username,Password

1,Github,myemail@io.com,Foo,Bar

As you can see this library is pretty easy to use and all the methods name are auto-explicative, but you can navigate further in this documentation

Query

A pydeas database can be queryied in 2 different ways:

one resembles the way of doing things in relational databases

(we recommend using this when queryies are more complex)

def get_config(app_name, email):

    print(password_file.query(f'App == "{app_name}" & Email == "{email}"'))

        

# This function will print the list of objects or None (if nothing is found)

for reference you can check the query method of pandas library which also takes a string and works in the exact same way;

While the other one resembles the non-relational databases (such as MongoDb etc.)

def get_config(app_name, email):

    print(password_file.search({

        "App": app_name,

        'Email': email

    }))

# This function will print the list of objects or None (if nothing is found)

Update

The update function takes 2 arguments: the first one is the query string, the second one the new row

def update_by_appname(app_name, new_email, new_username, new_password) -> None:

    response = password_file.update(f'App == "{app_name}"', {

        'App': app_name,

        'Email': new_email,

        'Username': new_username,

        'Password': new_password

    })

    print(response)

# This function will print true if the operation is completed succesfully

Delete

The delete function the query string as argument

def delete_by_appname(app_name) -> None:

    response = password_file.delete(f'App == "{app_name}"')

    print(response)

# This function will print true if the operation is completed succesfully

Pydeas v1.0.2

Metadata

Release files for pydeas 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydeas 1.0.2
File Size Uploaded Provenance
pydeas-1.0.2.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pydeas 1.0.2
File Interpreter ABI Platform
pydeas-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / pydeas-1.0.2.tar.gz

Download URL pydeas-1.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a4be466e999a55c7de475cd60b62a8fea80f768a07ab824f57ed3971d3fb74ae
BLAKE2b-256 checksum
How to use checksums
be4b8f0c0ac9f571c8a1925d7a4d07b95a8feba9d90dba2aa83e99c4298dd5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / pydeas-1.0.2-py3-none-any.whl

Download URL pydeas-1.0.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6de7fea7533f5bdfe4e60145a575cb961ee9523d855e72da37ed25f44ca71bef
BLAKE2b-256 checksum
How to use checksums
407137e8b46f379c05f4136d83ff22c19568d938c86d9aef6aa66c4be82c81d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for pydeas 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page