https://github.com/scieloorg/packtools
Python library and command-line utilities to handle SciELO PS XML files.
https://github.com/scieloorg/packtools
jats python scielo scielo-ps scielo-xml xml-schema
Last synced: 29 days ago
JSON representation
Python library and command-line utilities to handle SciELO PS XML files.
- Host: GitHub
- URL: https://github.com/scieloorg/packtools
- Owner: scieloorg
- License: bsd-2-clause
- Created: 2013-11-14T13:30:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-12-01T12:00:43.000Z (about 1 month ago)
- Last Synced: 2025-12-04T00:28:47.069Z (about 1 month ago)
- Topics: jats, python, scielo, scielo-ps, scielo-xml, xml-schema
- Language: Python
- Homepage: http://packtools.readthedocs.org
- Size: 60.8 MB
- Stars: 11
- Watchers: 13
- Forks: 24
- Open Issues: 140
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# scielo.packtools
Python library and command-line utilities to handle SciELO PS XML files that
runs on python > 3.9.
## Build status
[](https://travis-ci.com/gustavofonseca/packtools)
[](https://packtools.readthedocs.io/en/latest/)
## Installation
``packtools`` depends on [lxml](http://lxml.de/installation.html).
Python Package Index (recommended):
```bash
$ pip install packtools
```
or just:
```bash
pip install -r requirements.txt
```
Pip + git (versão de desenvolvimento):
```bash
$ pip install -e git+git://github.com/scieloorg/packtools.git#egg=packtools
```
Source-code:
```bash
$ git clone https://github.com/scieloorg/packtools.git
$ cd packtools
$ python setup.py install
```
Installation as a web application, where a graphical interface for `stylechecker`
and an HTML previewer is provided:
```bash
$ pip install packtools[webapp]
```
or
```bash
pip install -r requirements.txt && pip install -r optional-requirements.txt
```
## Tests
To run tests execute:
```bash
python setup.py test
```
To run a specific module of tests, type:
```bash
python setup.py test -s tests.test_htmlgenerator
```
Run tests with tox:
```
tox
```
## Command line execute
```bash
htmlgenerator example.xml --loglevel=error --nochecks --nonetwork
```
It will generate the result in the same path of the .xml file.
## Running the web application
Configuring the application:
| environment variable | default value |
|----------------------|--------------------------------------------------|
| APP_SETTINGS | packtools.webapp.config.default.ProductionConfig |
```bash
$ export APP_SETTINGS=packtools.webapp.config.default.ProductionConfig
$ export FLASK_APP=packtools.webapp.app.py
$ flask run
```
## Documentation
http://packtools.readthedocs.org/ (we need help!)
## Use license
Copyright 2013 SciELO . Licensed under the terms
of the BSD license. Please see LICENSE in the source code for more
information.
https://github.com/scieloorg/packtools/blob/master/LICENSE
## Changelog
https://github.com/scieloorg/packtools/blob/master/HISTORY.md