AMdata
A Simple Tool for SQLite Databases
This library was created by Amjad to simplify common database operations such as creating, inserting, and selecting data. It is designed to be intuitive and easy to use for all programmers.
Note on Contributions: All changes and modifications to this library must be clearly documented in the source code files and a change log. The original creator, Amjad, and the tool's name, AMdata, must be explicitly and clearly mentioned in any derivative work.
Installation
You can install the library easily using pip:
pip install amdata
Usage
1. Connecting to the database and creating a table
from amdata.db import DB
# Connect to a database file named 'my_app.db'
# If the file does not exist, it will be created automatically.
db = DB('my_app.db')
# Create a table named 'users' with two columns: 'username' and 'password'
db.create_table('users', username='TEXT', password='TEXT')
2. Inserting data
# Insert a new user record
db.insert('users', username='amjad', password='1234')
# Note: The check_duplicate method is integrated.
# This will prevent adding a duplicate username.
db.insert('users', username='amjad', password='5678')
3. Updating and Deleting data
# Update the password for user 'amjad'
db.update('users', "username = 'amjad'", password='5678')
# Delete a user record
db.delete('users', "username = 'amjad'")
4. Retrieving data
# Select all data from the 'users' table
all_users = db.select('users')
print(all_users)
Metadata
Release files for amdata 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amdata-0.1.2.tar.gz | 7.0 kB | Without provenance | Details for amdata-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amdata-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for amdata-0.1.2-py3-none-any.whl |
Total release size: 14.5 kB
Release files / amdata-0.1.2.tar.gz
| Download URL | amdata-0.1.2.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
932abc6cf568c3e437ed29385eb289ed4307dcbacb0fa8b6c25cf895cc443c6d
|
|
BLAKE2b-256 checksum How to use checksums |
2598f795575d386a032dd6533a9711eac02f5c4f00eae022545b732ca20dd16c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / amdata-0.1.2-py3-none-any.whl
| Download URL | amdata-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17c4d9372075f16d55cba4776568bf4f9255555c65066298d19093db0bf14800
|
|
BLAKE2b-256 checksum How to use checksums |
9b5393edb4ec95ca2b9925a4dbd796625aad27e7ed89e7179fbcb105e76b621f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for amdata 0.1.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.