Skip to main content

A client to interact with freud-net API

Project description

PyPI version codecov

Freud API Crawler

A client to interact with freud-net API

install

  • create a virtual environment and install the package with pip install freud_api_crawler
  • provide FRD_USER (freud-net username) and FRD_PW (freud-net password) as environment varibles, e.g. by
    • create a file called env.secret to store you freud-net api credentials
    • run ./set_env_variables.sh

example env.secret

FRD_USER=username
FRD_PW=password

usage

Download a Work

  • download_work -s . -w 2da622da-de12-46e4-bb1d-c9c4a7ae877e
  • -s path to save the created files into; . will write the files into ./werke/...
  • -w the Drupal-API-ID of the Werk to process (see below on how to get those IDs)

dev

  • clone the repo

  • create virtual env

  • install dev-depenencies pip install -r requirements_dev.txt

  • install the package (so you have the actual dependencies as well) pip install -e .

  • run test with coverage run -m pytest -v

  • create test-report coverage report or coverage html

api-utils

get work by title

https://www.freud-edition.net/jsonapi/node/werk?filter[field_titel.value]=%C3%9Cber%20den%20Traum https://www.freud-edition.net/jsonapi/node/werk?filter[field_titel.value]=Über den Traum

get manifestaion by node id

this ID can be taken from edit-url, e.g. https://www.freud-edition.net/node/51190/edit

https://www.freud-edition.net/jsonapi/node/manifestation?filter[drupal_internal__nid]=51190

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

freud_api_crawler-1.1.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

freud_api_crawler-1.1.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file freud_api_crawler-1.1.1.tar.gz.

File metadata

  • Download URL: freud_api_crawler-1.1.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for freud_api_crawler-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1426a75d6e5d608437793cd14c4213d97bf3f543f8b70bbf22c0b45b3c1b613c
MD5 e4a7b90f4fc308fd2f3e30b091710add
BLAKE2b-256 85bce4a46dc0df3cd0edc232de9d454263258ec747ebdaddfa9de8310ec538f5

See more details on using hashes here.

File details

Details for the file freud_api_crawler-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for freud_api_crawler-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de0aa33aa89e0d63624dd066bcaf86a37ea834caa65584892c19c9efa906a995
MD5 41b49cc019f3a82c365e42bae0aefea3
BLAKE2b-256 d0299cf26c2367e9acdbb2c96259e10fead2b60f91a5cf4cf2cdaa3e3807e6e7

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