Mysqllib
Simple mysql database
Connect
connect(
user: str,
password: str,
database: str,
host: str='127.0.0.1',
port: int=3306
)
Fetch one
fetchone(query, args=None) -> Optional[dict]
Fetch all
fetchall(query, args=None) -> Optional[list]:
Execute
execute(query, args=None) -> bool:
find
def find(
table: str,
conditions: Dict[str, Union[str, List]] = None,
columns='*',
joins: Optional[List[Tuple[str, str, str]]] = None,
order_by=None
) -> dict
findall
def findall(
table: str,
conditions: Dict[str, Union[str, List]] = None,
columns='*',
joins: Optional[List[Tuple[str, str, str]]] = None,
group_by=None,
order_by=None,
limit=None
) -> list
update
def update(
table: str,
data: Dict[str, any],
conditions: Optional[Dict[str, any]] = None
) -> bool
delete
def delete(
table: str,
conditions: Optional[Dict[str, any]] = None
)
insert
def create(
table: str,
data: Dict[str, any]
) -> bool
Mirations
Run
import mysqllib.migration
mysqllib.migration.run_migration('./path/to/migration/directory/')
Metadata
Release files for mysqllib 1.0.6
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 |
|---|---|---|---|---|
| mysqllib-1.0.6.tar.gz | 6.2 kB | Without provenance | Details for mysqllib-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mysqllib-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for mysqllib-1.0.6-py3-none-any.whl |
Total release size: 13.1 kB
Release files / mysqllib-1.0.6.tar.gz
| Download URL | mysqllib-1.0.6.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9c3d8c8f91d0942b5e8109b25952c8ad35daacecaa03b8868308d3faaec1f14
|
|
BLAKE2b-256 checksum How to use checksums |
2bbbbdf507fdde686a91844cecfb935a1a09bfcbc130de1734f216d9ec2699e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / mysqllib-1.0.6-py3-none-any.whl
| Download URL | mysqllib-1.0.6-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
079af8a0db416c86ee6cb97871dcc600711b469ef7fc74c7b9bade81b7a266de
|
|
BLAKE2b-256 checksum How to use checksums |
b494708876ec9f4f3620de20ebd65dcd2cf3c200d91c2ca77bb66a7185251715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for mysqllib 1.0.6
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.