Skip to main content

Python Library For Harvesting Modern.Gov Records into Preservica for Long Term Preservation

Project description

pyPreservica.Gov

Python Module For Harvesting public Modern.Gov Committee and Meeting Records into Preservica for Long Term Preservation.

pyPreservica.Gov is a Python Module which allows Preservica users to automatically harvest public records from the Civica Modern.Gov Content Management system directly into a Preservica Long Term Digital Preservation platform

Usage

Once installed you can run pyPreservica.Gov directly from the command line

    $ python -m  pyPreservicaGov

The first time the module is run, it will create a credentials.properties file in the local directory and then exit

Edit the credentials.properties, the first section should contain your Preservica username, password and hostname of the Preservica system you would like to connect to.

The second section contains the security tag which should be assigned to the records as they are ingested. For example records which can be published immediately on the Preservica access portal should be set to "public".

The site_name parameter should point to the URL of the Modern.Gov system you would like to harvest.

parent.folder should be the UUID of the Preservica collection the Committee folders will be ingested into.

The committee.FromDate and committee.ToDate parameters specify the date range of meetings which will be harvested.

[credentials]
username=test@test.com
password=1234567
server=uk.preservica.com

[Modern.Gov]
security.tag=open
site_name=https://democracy.local_authority.gov.uk/
parent.folder=372d2881-7cce-4c2e-99f7-386c3cf4a922
committee.FromDate=01/01/1980
committee.ToDate=01/01/2024

Once the credentials.properties has been updated you can run pyPreservica.Gov again directly from the command line to start the harvest process.

    $ python -m  pyPreservicaGov

License

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

Installation

pyPreservica.Gov is available from the Python Package Index (PyPI)

https://pypi.org/project/pyPreservicaGov/

To install pyPreservica.Gov, simply run this simple command in your terminal of choice:

$ pip install pyPreservica.Gov

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

pypreservicagov-1.0.1.tar.gz (24.3 kB view details)

Uploaded Source

Built Distributions

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

pypreservicagov-1.0.1-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

pyPreservicaGov-1.0.1-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file pypreservicagov-1.0.1.tar.gz.

File metadata

  • Download URL: pypreservicagov-1.0.1.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pypreservicagov-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b0fc910b5a371fc969c10db69e20085953a0bd541e935f153514e2e035c90686
MD5 8f4c1b56419e8743581bfe050558993a
BLAKE2b-256 7986522059f14b1477d98088e4fc38dffd6add754232fd4a182f28a0d2632eba

See more details on using hashes here.

File details

Details for the file pypreservicagov-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pypreservicagov-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66e2f69b09438ee9ffd1af78a5b1c41b131eb4cd164bec1e1d7d3be88b55eca5
MD5 39a679688c610148a30103a69fe5f507
BLAKE2b-256 9f8c43d901da03ec5954a5764f869294bb93b999ca6e623ae0ca14bc5d60ccf7

See more details on using hashes here.

File details

Details for the file pyPreservicaGov-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyPreservicaGov-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for pyPreservicaGov-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55889f2db01e6ce49940952048c5794948b0d61bec9180f25fa69b4922b89117
MD5 f524459eca6aa632d16860e7c9d3aee3
BLAKE2b-256 a1d76f82c175fbf9034caa60373b25f52c0ef31dc4a54b6ee266980da1b37745

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