Index:
pyBase
Classes
class Record()
- Record(database=None)
Methods defined here:
- addOrQuery(self, field: str, operator, condition) -> object
-
addQuery(self, field: str, operator, condition) -> object
Filter data by field and by providing a value
-
delete(self) -> None
DEPRECATEDÂ METHOD
-
get(self, id: str, p=False) -> pyBase
Returns a single database entry-
@param id - Unique record ID
-
@param p - Flag for formated print
-
@returns pyBase Object
-
-
insert(self, json_data: dict) -> str
Inserts [Record](#Record) in Database- @param json_data - dict
-
mark_delete(self, data: dict) -> object
DEPRECATEDÂ METHOD
-
query(self, p=False) -> None
Returns the results of a database with/without filter options and stores in "result" variable-
@param p - Flag for formated print
-
@returns None
-
-
setLimit(self, limit: int) -> None
Set the number of Records returned- @param limit - Number of records
-
sort_by(self, field: str, order: str) -> object
Set the order of the list-
@param field - Field of a Database
-
@param order - If order is Ascending or Descending
-
class pyBase
- pyBase(record=None, database=None, index=None)
Methods defined here:
-
delete(self) -> None
Permanently deletes Record from database
-
getCreationTime(self)
Returns date of Record creation
-
update(self) -> None
Permanently saves Record changes in Database
-
updateTime(self)
Returns last update date
-
getConfigPath()
Returns pyBase local path
-
getDBInfo(db: str) -> None
Get DB structure
-
getDatabases() -> list
Get databases in local system
Functions
- create_database_from_schema(verbose=False)
-
create_new_database(name, verbose=True)
Method to create new database
-
encrypt(*args, **kwargs)
Method to encrypt data
-
load_data(db)
Loads data from a DB- @param db - Name of Database
- @returns JSON dict
-
save(data, where)
Save json data
Metadata
Release files for pyBaseDB 0.2.7
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 |
|---|---|---|---|---|
| pyBaseDB-0.2.7.tar.gz | 9.7 kB | Without provenance | Details for pyBaseDB-0.2.7.tar.gz |
Release files / pyBaseDB-0.2.7.tar.gz
| Download URL | pyBaseDB-0.2.7.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5c7beea1939aa878c7a85b3b5d1df433e1863a4fea3e0d35889c61765885edb
|
|
BLAKE2b-256 checksum How to use checksums |
6b22271ec1a9042945757a966032a311bb28397ef1e15c1ea32b91e1c4e9550d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.6
|
Security for pyBaseDB 0.2.7
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.