dotclear-backup-parser
dotclear-backup-parser is a Python module to parse Dotclear backup files (like 2024-01-07-11-22-dotclear-backup.txt).
Note
As there are no format specification for dotclear backup format, there is no way to "validate" parsed data are correct. Please always check your data.
Example
You load the backup content in a parser object:
import dotclear_backup_parser
# Load dotclear backup content.
with open("2024-01-07-11-22-dotclear-backup.txt") as fp:
parser = dotclear_backup_parser.load(fp)
Then you can iterate over tables found in the backup file:
for table in parser:
print(table.name, len(table.rows))
for column_name in table.column_names:
print(f" {column_name}")
Tables are DcBackupTable object having three properties:
- name (
str): Table name. - column_names (
list[str]): Name of the columns of the table. - rows (
list[list[str]]): List of rows, each row is a list of value (same length ascolumn_names).
Read the source for more information.
Metadata
Release files for dotclear-backup-parser 0.0.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 | |
|---|---|---|---|
| dotclear-backup-parser-0.0.1.tar.gz | 38.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dotclear_backup_parser-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.8 kB
Release files / dotclear-backup-parser-0.0.1.tar.gz
| Download URL | dotclear-backup-parser-0.0.1.tar.gz |
|---|---|
| Size | 38.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2a1b8cd5ecf86f428200820c4f7c0f402b264b9c65fbea11d58122d850247a3
|
|
BLAKE2b-256 checksum How to use checksums |
f9c5f2dc9f2bc7bb628e052a8cdda8391821b50f1461577b9caee3baad4e3a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / dotclear_backup_parser-0.0.1-py3-none-any.whl
| Download URL | dotclear_backup_parser-0.0.1-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bde7fc39046b6d1fed06a5a75ac4a32f98904d0787535ce473c905224b0f0948
|
|
BLAKE2b-256 checksum How to use checksums |
a0b96f1fd4d49f78bc8a583827c7caaba012cf46e951d127130944d6be65e558
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|