pyDAL
pyDAL is a pure Python Database Abstraction Layer.
It dynamically generates the SQL/noSQL in realtime using the specified dialect for the database backend, so that you do not have to write SQL code or learn different SQL dialects (the term SQL is used generically), and your code will be portable among different types of databases.
pyDAL comes from the original web2py's DAL, with the aim of being compatible with any Python program. pyDAL doesn't require web2py and can be used in any Python context.
Installation
You can install pyDAL using pip:
pip install pyDAL
Usage and Documentation
Here is a quick example:
>>> from pydal import DAL, Field
>>> db = DAL('sqlite://storage.db')
>>> db.define_table('thing', Field('name'))
>>> db.thing.insert(name='Chair')
>>> query = db.thing.name.startswith('C')
>>> rows = db(query).select()
>>> print rows[0].name
Chair
>>> db.commit()
The complete documentation is available on http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer
What's in the box?
A little taste of pyDAL features:
- Transactions
- Aggregates
- Inner Joins
- Outer Joins
- Nested Selects
Which databases are supported?
pyDAL supports the following databases:
- SQLite
- MySQL
- PostgreSQL
- MSSQL
- FireBird
- Oracle
- DB2
- Ingres
- Sybase
- Informix
- Teradata
- Cubrid
- SAPDB
- IMAP
- MongoDB
License
pyDAL is released under the BSD-3c License. For further details, please check the LICENSE file.
Metadata
Release files for pydal 20230511.1
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 |
|---|---|---|---|---|
| pydal-20230511.1.tar.gz | 407.2 kB | Without provenance | Details for pydal-20230511.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydal-20230511.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pydal-20230511.1-py2.py3-none-any.whl |
Total release size: 650.3 kB
Release files / pydal-20230511.1.tar.gz
| Download URL | pydal-20230511.1.tar.gz |
|---|---|
| Size | 407.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
857afe57d7e05ed57b35cc8903f73718522953bff47bc7fd1c85df92bd11e5d4
|
|
BLAKE2b-256 checksum How to use checksums |
82aa4cdff70e75770d3fde73a19e4eb896050984b188335a95e0e43b2c604095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / pydal-20230511.1-py2.py3-none-any.whl
| Download URL | pydal-20230511.1-py2.py3-none-any.whl |
|---|---|
| Size | 243.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1d7aa60a48cd294e3240b36534779a9d798af1221f0d9a8f0962362b5a2f985f
|
|
BLAKE2b-256 checksum How to use checksums |
31fb9d64f19251f16967124dc00dbd11e1e383d59f6d59e06dbce25418c3ff02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for pydal 20230511.1
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.