Skip to content

Commit

Permalink
updated requirements in setup.py. now available via pip install panda…
Browse files Browse the repository at this point in the history
…base
  • Loading branch information
notsambeck committed Aug 12, 2019
1 parent c5fbb6f commit 4d51c7f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# packaging
dist/
build/

# editors
.idea
.vscode
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# pandabase
[![Build Status](https://travis-ci.org/notsambeck/pandabase.svg?branch=master)](https://travis-ci.org/notsambeck/pandabase)

pandabase is a tool for reading & writing DataFrames to & from SQLite
pandabase links pandas DataFrames to SQL databases, supporting read, append, and upsert.

By default, uses DataFrame.index as primary key. By using an explicit primary key, pandabase makes it easy to upsert pandas data into SQL databases.
By default, uses DataFrame.index as primary key. By using an explicit primary key, pandabase makes it easy to upsert.

Designed for time series datasets that need to be updated over time and stored to disk, but are used in-memory for computation.

Tested under Python 3.6 and 3.7, with new versions of Pandas and SQLAlchemy
Tested under Python 3.6 and 3.7, with new versions of Pandas and SQLAlchemy.

### Features
* primary keys (any named index is assumed to be the PK)
Expand All @@ -17,7 +17,7 @@ Tested under Python 3.6 and 3.7, with new versions of Pandas and SQLAlchemy
* tested under SQLite
* postgres support coming soon
* automated tests in pytest
* 96% coverage
* 96% test coverage
* also includes pandabase.companda.companda for rich comparisons of DataFrames

### Design Considerations
Expand Down Expand Up @@ -69,7 +69,7 @@ Your data is now persistently stored in a SQLite database, using my_data.index a

```bash
~/pandabase$ ls
brand_new_sqlite_db.sqlite
new_sqlite_db.sqlite
```

```python
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@
long_description = fh.read()

setup(
version='0.1',
version='0.1.1',
author='Sam Beck',
author_email='notsambeck@gmail.com',
name='pandabase',
packages=['pandabase'],
description="pandabase links pandas DataFrames to SQL databases. Supports read, append, and upsert.",
long_description = long_description,
long_description_content_type = 'text/markdown',
url="https://github.com/notsambeck/pandabase",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
],
install_requires=[
'pandas>=0.24.0',
'sqlalchemy>=1.3.0',
]
)

0 comments on commit 4d51c7f

Please sign in to comment.