Skip to main content

Code for identifying Marx quotes associated with the CDH project Citing Marx

Project description

remarx

This repository contains in-progress research software developed for the CDH project Citing Marx. The primary purpose of this software is to identify quotes of Karl Marx's Manifest der Kommunistischen Partei and the first volume of Das Kapital within articles published in Die Neue Zeit between 1891 and 1918.

DOI PyPI - Version Unit Tests codecov Apache 2 License

[!WARNING] A bug in versions prior to 1.0.2 means that quotation candidates generated with multiple original files selected are not reliable. We recommend upgrading to v1.0.2 and regenerating any data based on multiple original files.

Basic Usage

Installation

Documentation assumes the use of uv for installing python and python packages, as well as running python scripts. The first time you follow these instructions, you should install uv per uv installation documentation. This only step only needs to be done once.

Create a uv environment

Create a new virtual environment using uv.

uv venv --python 3.12

Install remarx

To install the most recent release published on PyPIi:

uv pip install remarx

remarx as a python package directly from GitHub. Use a branch or tag name, e.g. @develop or @0.1 if you need to install a specific version.

uv pip install "remarx @ git+https://github.com/Princeton-CDH/remarx"

Launch quote finder app

To launch the remarx quote finder application run the remarx-app command:

uv run remarx-app

Default corpus directories

For convenience, we suggest saving and selecting corpus files from a standard location under your home directory: ~/remarx-data/corpora/original and ~/remarx-data/corpora/reuse. Both the Sentence Corpus Builder and Quote Finder portions of the app default to these folders (with an option to override) and prompt you to create them if they don't exist.

Closing quote finder app

The app will not close automatically when you close the browser window or tab. To close the app:

  1. Type control+c within the terminal where the remarx-app command was run
  2. Then, when prompted, type y followed by enter.

Documentation

Find public documentation at: remarx Documentation

Development

For development setup, documentation generation, and contributing guidelines, see Developer Notes.

License

This project is licensed under the Apache 2.0 License.

(c)2025 Trustees of Princeton University. Permission granted for non-commercial distribution online under a standard Open Source license.

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

remarx-1.0.2.tar.gz (353.2 kB view details)

Uploaded Source

Built Distribution

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

remarx-1.0.2-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file remarx-1.0.2.tar.gz.

File metadata

  • Download URL: remarx-1.0.2.tar.gz
  • Upload date:
  • Size: 353.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for remarx-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ea49e13096134bce58b431de9acebf1721a6da8d0a818c4c12170c7746137d71
MD5 77689b6836468e695ba3ef0f6607359f
BLAKE2b-256 bae4b9e90ac721d861c9207b01dddd1b8fb393b25aea469373ca04c169708934

See more details on using hashes here.

Provenance

The following attestation bundles were made for remarx-1.0.2.tar.gz:

Publisher: python-publish.yml on Princeton-CDH/remarx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file remarx-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: remarx-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for remarx-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f18bb8c3224735610e57042130a033c999fc2ec1c66deb80d79887865eec7a5
MD5 78c2a48612942c11b479fecb2499b557
BLAKE2b-256 98aa6417101e7bb8fa243f4a982dd95048c1d6807e75898f86574c932df2d281

See more details on using hashes here.

Provenance

The following attestation bundles were made for remarx-1.0.2-py3-none-any.whl:

Publisher: python-publish.yml on Princeton-CDH/remarx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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