integresql-client-python
Python client for IntegreSQL.
Current stable version
0.9.2
Python version
integresql-client-python is tested against Python 3.8+. Older Python versions may work, or may not.
How to use
from integresql_client_python import IntegreSQL
integresql = IntegreSQL('template_directory')
# integresql.debug = True
with integresql as tpl:
with tpl.initialize() as dbinfo:
# dbinfo is None if template is already initialized
if dbinfo:
# connect and import fixtures
print("initialize db with fixtures with db data:", dbinfo)
db = tpl.get_database()
with db as dbinfo:
# connect and do whatever you want
print("Do your tests with db data:", dbinfo)
# or manually, you can use as many databases as you need or IntegreSQL will allow
dbinfo1 = db.open()
print("Do your tests", dbinfo1)
dbinfo2 = db.open()
print("Do your tests", dbinfo2)
dbinfo3 = db.open()
print("Do your tests", dbinfo3)
# connect and do whatever you want
# do not forget about closing resources:
db.close(dbinfo1)
db.close(dbinfo2)
db.close(dbinfo3)
Authors
- Marcin Sztolcman (marcin@urzenia.net)
Contact
If you like or dislike this software, please do not hesitate to tell me about it via email (marcin@urzenia.net).
If you find a bug or have an idea to enhance this tool, please use GitHub's issues.
ChangeLog
v0.9.2
- fixed a bug where test database was returned to pool after every test and got reused.
Renamed method
Database.close()toDatabase.mark_unmodified(). UsingDatabaseinwithblock doesn't return selected database to pool anymore.
v0.9.1
- allow using multiple template paths
v0.9.0
- first public version
Metadata
Release files for integresql-client-python 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| integresql_client_python-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / integresql_client_python-0.9.2-py3-none-any.whl
| Download URL | integresql_client_python-0.9.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24a4eb8d39c82b16fbe471cde47b883c87c45c34b0e176dba4928b2b969c6b35
|
|
BLAKE2b-256 checksum How to use checksums |
3ce933dd4260c266415cc693f303db71dca2ef8e13be88ba98a63a884c86d07e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
|
Security for integresql-client-python 0.9.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.