Skip to main content

A library to access the Corpus of Place Representations (COPR)

Project description

Corpus of Place Representations (COPR) / COPR.py

COPR [ˈkɒp.əʳ] is the Corpus of Place Representations, a collection of semantically annotated place representations that are made available for research. It is run by the Space & Place LAB, currently located at the University of Salzburg.

The COPR.py as part of the COPR API is an easy-to-use library to access data from the Corpus of Place Representations (COPR).

Website: https://copr.space-and-place.net

Installation

To install the library, you will need Node.js and Yarn as well as Python3 and pip. To install the production version, run

pip3 install copr.py # install package from PyPI

Alternatively, you can install the local version included in this repository. To do this, you have to first build some files using the copr-orchestration repository:

cd ..
git clone https://gitea.franz-benjamin.net/copr/copr-orchestration.git
cd copr-orchestration
yarn run build:info
cd ../copr-api

Then, you can run:

cd copr.py
yarn install # install for production
yarn run install:dev # install for development (with tests)

or alternatively

cd copr.py
pip3 install . # install for production
pip3 install -e . # install for development

Usage

For further information about the usage, see https://copr.space-and-place.net.

Testing

You can test the package by installing the corresponding dependencies

pip3 install .[test] # local
pip3 install copr[test] # from PyPI

and then running

pytest --verbose

Publishing

You can publish the library by executing the following steps:

cd copr.py
yarn run publish

Authorship and License

This application is written and maintained by Franz-Benjamin Mocnik, mail@space-and-place.net.

The code is licensed under the CC BY-SA 4.0.

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

copr_py-0.0.15.tar.gz (11.5 kB view details)

Uploaded Source

File details

Details for the file copr_py-0.0.15.tar.gz.

File metadata

  • Download URL: copr_py-0.0.15.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for copr_py-0.0.15.tar.gz
Algorithm Hash digest
SHA256 e1eeef61d043ca19d2a9c8d62edd9715a5a6e45c227cc796e49b7afcd9ca60a2
MD5 d81a608cbdf93c9442bdfd6487cfe5f1
BLAKE2b-256 7db115201ee64812bd358675ceb8d4d3fe62191692dee620cb505d7044d0b905

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