Metadata-Version: 2.1
Name: acdh-uri-norm-rules
Version: 1.1.0
Summary: A set of URI normalization rules used by the ACDH
Home-page: https://github.com/acdh-oeaw/UriNormRules
Author: Mateusz Żółtak
Author-email: mzoltak@oeaw.ac.at
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# UriNormRules

[![PyPI version](https://badge.fury.io/py/acdh-uri-norm-rules.svg)](https://badge.fury.io/py/acdh-uri-norm-rules)
[![Latest Stable Version](https://poser.pugx.org/acdh-oeaw/uri-norm-rules/v/stable)](https://packagist.org/packages/acdh-oeaw/uri-norm-rules)
[![License](https://poser.pugx.org/acdh-oeaw/uri-norm-rules/license)](https://packagist.org/packages/acdh-oeaw/uri-norm-rules)

Set of URI normalization rules used within the [ACDH-CD](https://www.oeaw.ac.at/acdh/).

Provides Python 3 and PHP bindings.

Rules are stored as a JSON in the `UriNormRules/rules.json` file.

# Installation & usage

## Python

* Install using pip3:
  ```bash
  pip3 install acdh_uri-norm-rules
  ```
* Use with
  ```Python
  from AcdhUriNormRules import *
  print(AcdhUriNormRules.getRules())
  ```

## PHP

* Install using using [composer](https://getcomposer.org/doc/00-intro.md):
  ```bash
  composer require acdh-oeaw/uri-norm-rules
  ```
* Usage with
  ```php
  require_once 'vendor/autoload.php';
  print_r(acdhOeaw\UriNormRules::getRules());
  ```


