Skip to main content

Python module to add local file system dates to existing Preservica assets

Project description

pyPreservicaFSDate

Python module which queries a local file system to try and add file system dates (created, modified, accessed) etc to objects in already in Preservica.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/carj/pyPreservicaFSDate

Support

pyPreservicaFSDate is 3rd party open source client and is not affiliated or supported by Preservica Ltd. There is no support for use of the library by Preservica Ltd. Bug reports can be raised directly on GitHub.

Users of pyPreservicaFSDate should make sure they are licensed to use the Preservica REST APIs.

License

The package is available as open source under the terms of the Apache License 2.0

Installation

pyPreservica is available from the Python Package Index (PyPI)

https://pypi.org/project/pyPreservicaFSDate/

To install pyPreservicaFSDate, simply run this simple command in your terminal of choice:

$ pip install pyPreservicaFSDate

Usage

To run the module you need to specify a Preservica collection you wish to process and a local directory containing the original files:

$ python -m pyPreservicaFSDate -c a7ad52e3-2cb3-4cb5-af2a-3ab08829a2a8 -p c://my-directory/images

By default, the module will try and match Preservica assets to local file names by using the Asset title, this is the fastest way of processing the dates, but may not correctly match files to assets.

The alternative to to match using fixity values stored in Preservica, this can be turned on by using the -f flag:

$ python -m pyPreservicaFSDate -c a7ad52e3-2cb3-4cb5-af2a-3ab08829a2a8 -p c://my-directory/images -f

Matching using fixity will be slower than using Asset titles.

usage: pyPreservicaFSDate [-h] [-c COLLECTION] [-p PATH] [-f]

Add file system dates to Preservica assets Search local file system for
matching files and add the file system dates to Preservica. Files are either
matched on Asset title and filename or by fixity which is slower You provide
both a Preservica collection UUID and a local file system folder to look for
matches

options:
  -h, --help            show this help message and exit
  -c, --collection COLLECTION
                        The Preservica parent collection uuid
  -p, --path PATH       The file system path to search
  -f, --fixity          Use fixity matching (slow)

The dates will appear as a new metadata form within the Asset

Metadata Dates

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypreservicafsdate-0.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypreservicafsdate-0.0.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pypreservicafsdate-0.0.3.tar.gz.

File metadata

  • Download URL: pypreservicafsdate-0.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for pypreservicafsdate-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3e2a3b70d0a3342ab89c3403076814f8be91bfac667c1e62768a140af18ce04c
MD5 ba3b79454d47454555d554497e4cfa74
BLAKE2b-256 f152e846f4e3b899d957c8dec7c56c6cb6c4c7b7ddcb9fb3b7e15ac4245f8da6

See more details on using hashes here.

File details

Details for the file pypreservicafsdate-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pypreservicafsdate-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9653f58d051b0c59b60ee9cece3b4da3fd2b22829f56bbc49f734f33752f61
MD5 a063fd3158eaa47a129851a34951388d
BLAKE2b-256 04f18d26f1d0d174d484857259d68c3f90de4dc041c5e804cba7a3b16b48cf7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page