Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 759e635a3c | |||
| 6298f3a0f6 | |||
| 08f638243e | |||
| 6703f2f254 | |||
| 13f2b199c9 | |||
| 7731497a5b | |||
| 9c4e7bf3f6 |
@@ -6,6 +6,7 @@ build/
|
|||||||
dist/
|
dist/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
.coverage
|
.coverage
|
||||||
|
coverage.xml
|
||||||
|
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
_build/
|
_build/
|
||||||
|
|||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
language: python
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get install python-tk ghostscript
|
||||||
|
install:
|
||||||
|
- pip install ".[dev]"
|
||||||
|
script:
|
||||||
|
- pytest
|
||||||
|
after_success:
|
||||||
|
- codecov
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
If you're reading this, you're probably looking to contributing to Camelot. *Time is the only real currency*, and the fact that you're considering spending some here is *very* generous of you. Thank you very much!
|
If you're reading this, you're probably looking to contributing to Camelot. *Time is the only real currency*, and the fact that you're considering spending some here is *very* generous of you. Thank you very much!
|
||||||
|
|
||||||
This document will help you get started with contributing documentation, code, testing and filing issues. If you have any questions, feel free to reach out to [Vinayak Mehta](http://vinayak-mehta.github.io), the author and maintainer.
|
This document will help you get started with contributing documentation, code, testing and filing issues. If you have any questions, feel free to reach out to [Vinayak Mehta](https://vinayak-mehta.github.io), the author and maintainer.
|
||||||
|
|
||||||
## Code Of Conduct
|
## Code Of Conduct
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
|
<p align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/socialcopsdev/camelot/master/docs/_static/camelot.png" width="200">
|
||||||
|
</p>
|
||||||
|
|
||||||
# Camelot: PDF Table Extraction for Humans
|
# Camelot: PDF Table Extraction for Humans
|
||||||
|
|
||||||
 
|
[](https://travis-ci.org/socialcopsdev/camelot) [](https://codecov.io/github/socialcopsdev/camelot?branch=master)
|
||||||
|
[](https://pypi.org/project/camelot-py/) [](https://pypi.org/project/camelot-py/) [](https://pypi.org/project/camelot-py/)
|
||||||
|
|
||||||
**Camelot** is a Python library which makes it easy for *anyone* to extract tables from PDF files!
|
**Camelot** is a Python library which makes it easy for *anyone* to extract tables from PDF files!
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Here's how you can extract tables from PDF files.** Check out the PDF used in this example, [here](docs/_static/pdf/foo.pdf).
|
**Here's how you can extract tables from PDF files.** Check out the PDF used in this example, [here](https://github.com/socialcopsdev/camelot/blob/master/docs/_static/pdf/foo.pdf).
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
>>> import camelot
|
>>> import camelot
|
||||||
@@ -38,7 +41,7 @@
|
|||||||
| 2032_2 | 0.17 | 57.8 | 21.7% | 0.3% | 2.7% | 1.2% |
|
| 2032_2 | 0.17 | 57.8 | 21.7% | 0.3% | 2.7% | 1.2% |
|
||||||
| 4171_1 | 0.07 | 173.9 | 58.1% | 1.6% | 2.1% | 0.5% |
|
| 4171_1 | 0.07 | 173.9 | 58.1% | 1.6% | 2.1% | 0.5% |
|
||||||
|
|
||||||
There's a [command-line interface](http://camelot-py.readthedocs.io/en/master/user/cli.html) too!
|
There's a [command-line interface](https://camelot-py.readthedocs.io/en/latest/user/cli.html) too!
|
||||||
|
|
||||||
## Why Camelot?
|
## Why Camelot?
|
||||||
|
|
||||||
@@ -51,7 +54,7 @@ See [comparison with other PDF table extraction libraries and tools](https://git
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
After [installing the dependencies](http://camelot-py.readthedocs.io/en/master/user/install.html), [tk](https://packages.ubuntu.com/trusty/python-tk) and [ghostscript](https://www.ghostscript.com/), you can simply use pip to install Camelot:
|
After [installing the dependencies](https://camelot-py.readthedocs.io/en/latest/user/install.html) ([tk](https://packages.ubuntu.com/trusty/python-tk) and [ghostscript](https://www.ghostscript.com/)), you can simply use pip to install Camelot:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ pip install camelot-py
|
$ pip install camelot-py
|
||||||
@@ -59,7 +62,7 @@ $ pip install camelot-py
|
|||||||
|
|
||||||
### Alternatively
|
### Alternatively
|
||||||
|
|
||||||
After [installing the dependencies](http://camelot-py.readthedocs.io/en/master/user/install.html), clone the repo using:
|
After [installing the dependencies](https://camelot-py.readthedocs.io/en/latest/user/install.html), clone the repo using:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ git clone https://www.github.com/socialcopsdev/camelot
|
$ git clone https://www.github.com/socialcopsdev/camelot
|
||||||
@@ -80,7 +83,7 @@ Great documentation is available at [http://camelot-py.readthedocs.io/](http://c
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
The [Contributor's Guide](CONTRIBUTING.md) has detailed information about contributing code, documentation, tests and more. We've included some basic information in this README.
|
The [Contributor's Guide](https://camelot-py.readthedocs.io/en/latest/dev/contributing.html) has detailed information about contributing code, documentation, tests and more. We've included some basic information in this README.
|
||||||
|
|
||||||
### Source code
|
### Source code
|
||||||
|
|
||||||
@@ -112,4 +115,4 @@ Camelot uses [Semantic Versioning](https://semver.org/). For the available versi
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the MIT License, see the [LICENSE](LICENSE) file for details.
|
This project is licensed under the MIT License, see the [LICENSE](https://github.com/socialcopsdev/camelot/blob/master/LICENSE) file for details.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
VERSION = (0, 1, 0)
|
VERSION = (0, 1, 2)
|
||||||
|
|
||||||
__title__ = 'camelot-py'
|
__title__ = 'camelot-py'
|
||||||
__description__ = 'PDF Table Extraction for Humans.'
|
__description__ = 'PDF Table Extraction for Humans.'
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
div.section h1 {font-size: 225%;}
|
div.section h1 {font-size: 210%;}
|
||||||
/* "Quick Search" should be capitalized. */
|
/* "Quick Search" should be capitalized. */
|
||||||
div#searchbox h3 {text-transform: capitalize;}
|
div#searchbox h3 {text-transform: capitalize;}
|
||||||
/* Make the document a little wider, less code is cut-off. */
|
/* Make the document a little wider, less code is cut-off. */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ If you're reading this, you're probably looking to contributing to Camelot. *Tim
|
|||||||
|
|
||||||
This document will help you get started with contributing documentation, code, testing and filing issues. If you have any questions, feel free to reach out to `Vinayak Mehta`_, the author and maintainer.
|
This document will help you get started with contributing documentation, code, testing and filing issues. If you have any questions, feel free to reach out to `Vinayak Mehta`_, the author and maintainer.
|
||||||
|
|
||||||
.. _Vinayak Mehta: http://vinayak-mehta.github.io
|
.. _Vinayak Mehta: https://vinayak-mehta.github.io
|
||||||
|
|
||||||
Code Of Conduct
|
Code Of Conduct
|
||||||
---------------
|
---------------
|
||||||
|
|||||||
+11
-3
@@ -8,10 +8,19 @@ Camelot: PDF Table Extraction for Humans
|
|||||||
|
|
||||||
Release v\ |version|. (:ref:`Installation <install>`)
|
Release v\ |version|. (:ref:`Installation <install>`)
|
||||||
|
|
||||||
.. image:: https://img.shields.io/badge/license-MIT-lightgrey.svg
|
.. image:: https://travis-ci.org/socialcopsdev/camelot.svg?branch=master
|
||||||
|
:target: https://travis-ci.org/socialcopsdev/camelot
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/github/socialcopsdev/camelot/badge.svg?branch=master&service=github
|
||||||
|
:target: https://codecov.io/github/socialcopsdev/camelot?branch=master
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/camelot-py.svg
|
||||||
:target: https://pypi.org/project/camelot-py/
|
:target: https://pypi.org/project/camelot-py/
|
||||||
|
|
||||||
.. image:: https://img.shields.io/badge/python-2.7-blue.svg
|
.. image:: https://img.shields.io/pypi/l/camelot-py.svg
|
||||||
|
:target: https://pypi.org/project/camelot-py/
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/pyversions/camelot-py.svg
|
||||||
:target: https://pypi.org/project/camelot-py/
|
:target: https://pypi.org/project/camelot-py/
|
||||||
|
|
||||||
**Camelot** is a Python library which makes it easy for *anyone* to extract tables from PDF files!
|
**Camelot** is a Python library which makes it easy for *anyone* to extract tables from PDF files!
|
||||||
@@ -61,7 +70,6 @@ Why Camelot?
|
|||||||
- **Metrics**: *Bad* tables can be discarded based on metrics like accuracy and whitespace, without ever having to manually look at each table.
|
- **Metrics**: *Bad* tables can be discarded based on metrics like accuracy and whitespace, without ever having to manually look at each table.
|
||||||
- Each table is a **pandas DataFrame**, which enables seamless integration into `ETL and data analysis workflows`_.
|
- Each table is a **pandas DataFrame**, which enables seamless integration into `ETL and data analysis workflows`_.
|
||||||
- **Export** to multiple formats, including json, excel and html.
|
- **Export** to multiple formats, including json, excel and html.
|
||||||
- Simple and Elegant API, written in **Python**!
|
|
||||||
|
|
||||||
See `comparison with other PDF table extraction libraries and tools`_.
|
See `comparison with other PDF table extraction libraries and tools`_.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
codecov==2.0.15
|
||||||
pytest==3.8.0
|
pytest==3.8.0
|
||||||
pytest-runner==4.2
|
pytest-runner==4.2
|
||||||
Sphinx==1.7.9
|
Sphinx==1.7.9
|
||||||
@@ -29,6 +29,7 @@ def setup_package():
|
|||||||
version=about['__version__'],
|
version=about['__version__'],
|
||||||
description=about['__description__'],
|
description=about['__description__'],
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
url=about['__url__'],
|
url=about['__url__'],
|
||||||
author=about['__author__'],
|
author=about['__author__'],
|
||||||
author_email=about['__author_email__'],
|
author_email=about['__author_email__'],
|
||||||
|
|||||||
Reference in New Issue
Block a user