Skip to content

Commit 9217e4e

Browse files
committed
refactor(sharepoint): replace sharepoint_sync with piccione dependency
1 parent 7ef156f commit 9217e4e

File tree

6 files changed

+288
-911
lines changed

6 files changed

+288
-911
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ Supported stages: raw, rawp, dcho, dchoo.
6767

6868
### SharePoint sync
6969

70-
When the local folder structure is not available, you can sync files from SharePoint.
70+
When the local folder structure is not available, you can sync files from SharePoint using [piccione](https://github.com/opencitations/piccione).
7171

72-
Create a YAML configuration file (see `sharepoint_config.example.yaml`):
72+
Create a YAML configuration file:
7373

7474
```yaml
7575
site_url: https://liveunibo.sharepoint.com/sites/PE5-Spoke4-CaseStudyAldrovandi
@@ -82,22 +82,18 @@ folders:
8282
8383
Cookie values can be extracted from browser developer tools after authenticating to SharePoint.
8484
85-
Sync structure and files:
85+
Sync structure only (no file download):
8686
8787
```bash
88-
uv run python -m changes_metadata_manager.sharepoint_sync config.yaml /output/dir
88+
uv run python -m piccione.download.from_sharepoint config.yaml /output/dir --structure-only
8989
```
9090

91-
Sync structure only (no file download):
91+
Sync structure and files:
9292

9393
```bash
94-
uv run python -m changes_metadata_manager.sharepoint_sync config.yaml /output/dir --structure-only
94+
uv run python -m piccione.download.from_sharepoint config.yaml /output/dir
9595
```
9696

97-
The sync outputs:
98-
- `structure.json`: folder hierarchy
99-
- All files from SharePoint (unless `--structure-only` is used)
100-
10197
Then run the metadata builder with the `--structure` flag:
10298

10399
```bash

changes_metadata_manager/sharepoint_sync.py

Lines changed: 0 additions & 264 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ description = "Map RDF knowledge graph triples to Aldrovandi digitization folder
55
readme = "README.md"
66
requires-python = ">=3.10"
77
dependencies = [
8-
"httpx>=0.28.1",
9-
"python-dotenv>=1.2.1",
10-
"pyyaml>=6.0.3",
8+
"piccione>=1.0.0",
119
"rdflib>=7.4.0",
12-
"rich>=14.2.0",
1310
]
1411

1512
[dependency-groups]

0 commit comments

Comments
 (0)