Metadata-Version: 2.4
Name: populse-db
Version: 3.0.6
Summary: populse-db
Author-email: Popolse Team <contact@brainvisa.info>
License: CeCILL-B
Project-URL: homepage, https://populse.github.io/populse_db/
Project-URL: repository, https://github.com/populse/populse_db
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: SQL
Classifier: Natural Language :: English
Classifier: Topic :: Database
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dateutil
Requires-Dist: lark>=0.7.0
Requires-Dist: cryptography
Requires-Dist: requests
Provides-Extra: doc
Requires-Dist: sphinx>=1.0; extra == "doc"
Provides-Extra: server
Requires-Dist: fastapi; extra == "server"
Requires-Dist: uvicorn; extra == "server"
Requires-Dist: tblib; extra == "server"
Dynamic: license-file

# populse_db
[//]: [![](https://travis-ci.org/populse/populse_db.svg?branch=master)](https://travis-ci.org/populse/populse_db)
[![Build status](https://ci.appveyor.com/api/projects/status/exyixo4o0osns6tn/branch/master?svg=true)](https://ci.appveyor.com/project/populse/populse-db-6gndf/branch/master)
[![codecov](https://codecov.io/gh/populse/populse_db/branch/master/graph/badge.svg?token=sTgorGiZ7w)](https://codecov.io/gh/populse/populse_db)
[![](https://img.shields.io/badge/license-CeCILL--B-blue.svg)](https://github.com/populse/populse_db/blob/master/LICENSE)
[![](https://img.shields.io/pypi/v/populse_db.svg)](https://pypi.python.org/pypi/populse_db/)
[![](https://img.shields.io/pypi/status/populse_db.svg)](https://pypi.python.org/pypi/populse_db/)
[![](https://img.shields.io/badge/python-3.10%203.11%203.12-yellow.svg)](#)
[![](https://img.shields.io/badge/platform-Linux%2C%20OSX%2C%20Windows-orange.svg)](#)

Database API for Populse

# Documentation

[The documentation is available on populse_db's website](https://populse.github.io/populse_db)

# Installation

From [PyPI](https://pypi.org/project/populse-db/):

    # A compatible version of Python and Pip must be installed

    To install pip:
    sudo apt-get install python-pip # Python2
    sudo apt-get install python3-pip # Python3

    # To install the module:
    sudo pip install populse-db # Beware that it is the Pip version corresponding to the good Python version
    sudo pipx.x install populse-db # With a precise Pip version
    sudo pythonx.x -m pip install populse-db # With a precise Python version

From source:

    # A compatible version of Python must be installed
    sudo apt-get install git
    git clone https://github.com/populse/populse_db.git /tmp/populse_db
    cd /tmp/populse_db
    sudo python setup.py install # Beware that it is the good Python version (use pythonx.x to be sure)
    cd /tmp
    sudo rm -r /tmp/populse_db

# Usage

	import populse_db
	from populse_db.database import Database
	import populse_db.database

# Tests

Unit tests written thanks to the python module unittest

Continuous integration made with Travis (Linux, OSX), and AppVeyor (Windows)

Code coverage calculated by the python module codecov

The module is ensured to work with Python 2.7 and Python >= 3.4

The module is ensured to work on the platforms Linux, OSX and Windows

The script of tests is python/populse_db/test.py, so the following command launches the tests:

	python test.py (if python/populse_db/ directory has been added to $PATH, or if $PWD in the terminal)

	python python/populse_db/test.py (from populse_db root folder)

	python -m populse_db.test

# Requirements

* lark-parser
* python-dateutil
* sphinx
* psycopg2

# Other packages used

  * ast
  * copy
  * datetime
  * hashlib
  * operator
  * os
  * re
  * six
  * tempfile
  * types
  * unittest

  # License

  The whole populse project is open source

  Populse_db is precisely released under the CeCILL-B software license

  You can find all the details on the license [here](http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html), or refer to the license file [here](https://github.com/populse/populse_db/blob/master/LICENSE)
