Karboni 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- karboni-0.1.0/.gitignore +59 -0
- karboni-0.1.0/.pre-commit-config.yaml +23 -0
- karboni-0.1.0/CHANGELOG.md +48 -0
- karboni-0.1.0/LICENSE.txt +674 -0
- karboni-0.1.0/PKG-INFO +264 -0
- karboni-0.1.0/README.md +222 -0
- karboni-0.1.0/pyproject.toml +158 -0
- karboni-0.1.0/src/karboni/__init__.py +13 -0
- karboni-0.1.0/src/karboni/async_utils.py +132 -0
- karboni-0.1.0/src/karboni/cli.py +342 -0
- karboni-0.1.0/src/karboni/database/__init__.py +201 -0
- karboni-0.1.0/src/karboni/database/engine.py +20 -0
- karboni-0.1.0/src/karboni/database/library.py +681 -0
- karboni-0.1.0/src/karboni/database/schema.py +368 -0
- karboni-0.1.0/src/karboni/exceptions.py +128 -0
- karboni-0.1.0/src/karboni/http.py +43 -0
- karboni-0.1.0/src/karboni/logging_utils.py +38 -0
- karboni-0.1.0/src/karboni/py.typed +0 -0
- karboni-0.1.0/src/karboni/typing.py +50 -0
- karboni-0.1.0/src/karboni/utils.py +30 -0
- karboni-0.1.0/src/karboni/zotero/__init__.py +1 -0
- karboni-0.1.0/src/karboni/zotero/config.py +58 -0
- karboni-0.1.0/src/karboni/zotero/delta.py +41 -0
- karboni-0.1.0/src/karboni/zotero/handler.py +783 -0
- karboni-0.1.0/src/karboni/zotero/sync.py +747 -0
- karboni-0.1.0/template.env +7 -0
- karboni-0.1.0/tests/__init__.py +1 -0
karboni-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Byte-compiled / optimized / caches.
|
|
2
|
+
.*cache/
|
|
3
|
+
__pycache__/
|
|
4
|
+
*.py[cod]
|
|
5
|
+
|
|
6
|
+
# C extensions.
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging.
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
venv/
|
|
13
|
+
.venv/
|
|
14
|
+
build/
|
|
15
|
+
dist/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
*.egg
|
|
19
|
+
*.egg-info/
|
|
20
|
+
pip-wheel-metadata/
|
|
21
|
+
.tool-versions
|
|
22
|
+
|
|
23
|
+
# Unit test / coverage reports.
|
|
24
|
+
htmlcov/
|
|
25
|
+
.tox/
|
|
26
|
+
.coverage
|
|
27
|
+
.coverage.*
|
|
28
|
+
nosetests.xml
|
|
29
|
+
coverage.xml
|
|
30
|
+
*.cover
|
|
31
|
+
|
|
32
|
+
# Translations.
|
|
33
|
+
*.mo
|
|
34
|
+
*.pot
|
|
35
|
+
|
|
36
|
+
# Logs.
|
|
37
|
+
*.log
|
|
38
|
+
|
|
39
|
+
# Development tools / IDEs.
|
|
40
|
+
.idea
|
|
41
|
+
.vscode/
|
|
42
|
+
*.code-workspace
|
|
43
|
+
.spyproject/
|
|
44
|
+
*.swo
|
|
45
|
+
*.swp
|
|
46
|
+
|
|
47
|
+
# OS-specific files.
|
|
48
|
+
.DS_Store
|
|
49
|
+
|
|
50
|
+
# Backup files.
|
|
51
|
+
*~
|
|
52
|
+
*.bak
|
|
53
|
+
*.old
|
|
54
|
+
|
|
55
|
+
# Configuration files.
|
|
56
|
+
.env
|
|
57
|
+
|
|
58
|
+
# Application data.
|
|
59
|
+
data/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# See https://pre-commit.com/hooks.html for info on hooks
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
+
rev: v5.0.0
|
|
5
|
+
hooks:
|
|
6
|
+
- id: check-added-large-files
|
|
7
|
+
- id: check-ast
|
|
8
|
+
- id: check-toml
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
- id: debug-statements
|
|
11
|
+
- id: detect-private-key
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: trailing-whitespace
|
|
14
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
15
|
+
rev: 'v1.16.1'
|
|
16
|
+
hooks:
|
|
17
|
+
- id: mypy
|
|
18
|
+
additional_dependencies: [anyio, click, click-option-group, httpx, sqlalchemy]
|
|
19
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
20
|
+
rev: v0.12.11
|
|
21
|
+
hooks:
|
|
22
|
+
- id: ruff
|
|
23
|
+
- id: ruff-format
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 (2026-06-12)
|
|
4
|
+
|
|
5
|
+
Bug fixes:
|
|
6
|
+
|
|
7
|
+
- Fix sync crashing when an item's fulltext has changed but not the item itself.
|
|
8
|
+
- Fix sync crashing with export format `csljson`.
|
|
9
|
+
|
|
10
|
+
Other changes:
|
|
11
|
+
|
|
12
|
+
- Fix minor code style and type annotation issues.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.1.0alpha2 (2026-02-27)
|
|
16
|
+
|
|
17
|
+
Bug fixes:
|
|
18
|
+
|
|
19
|
+
- Fix `.env` file not looked up in arbitrary working directory.
|
|
20
|
+
|
|
21
|
+
Other changes:
|
|
22
|
+
|
|
23
|
+
- Replace variables `Library.FILE_DOWNLOAD_STATUS_*` with enum `Library.FileDownloadStatus`.
|
|
24
|
+
- Simplify file attachments cleaning code.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 0.1.0alpha1 (2025-12-16)
|
|
28
|
+
|
|
29
|
+
Bug fixes:
|
|
30
|
+
|
|
31
|
+
- Fix subcollections not deleted when a collection gets deleted.
|
|
32
|
+
- Fix item type information lost in some incremental sync scenarios.
|
|
33
|
+
- Fix database engine connection not cleanly disposed of after use.
|
|
34
|
+
- Fix sync parameter consistency check sometimes failing.
|
|
35
|
+
- Fix crash when passing duplicate values to locales, styles, export_formats or
|
|
36
|
+
media_types options.
|
|
37
|
+
|
|
38
|
+
Other changes:
|
|
39
|
+
|
|
40
|
+
- Rename `max_requests` option to `max_concurrent_requests`.
|
|
41
|
+
- Remove unused optional package dependencies.
|
|
42
|
+
- Standardize the interfaces of exception classes.
|
|
43
|
+
- Add documentation.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 0.1.0alpha0 (2025-12-01)
|
|
47
|
+
|
|
48
|
+
- First PyPI release.
|