Metadata-Version: 2.1
Name: smartleia
Version: 1.0.0
Summary: Python toolkit for LEIA smartcard reader
Home-page: UNKNOWN
Author: LEIA Team
Author-email: leia@h2lab.org
License: LGPL-2.1+
Project-URL: Documentation, https://github.com/h2lab/smartleia/-/blob/master/README.md
Project-URL: Source, https://github.com/h2lab/smartleia
Project-URL: Homepage, https://github.com/h2lab/smartleia.github.io
Platform: UNKNOWN
Requires-Python: ==3.*,>=3.7.0
Description-Content-Type: text/markdown
Requires-Dist: pyserial (==3.*,>=3.4.0)
Requires-Dist: pytest (==5.*,>=5.2.0)
Requires-Dist: pytest-csv (==2.*,>=2.0.2)
Provides-Extra: dev
Requires-Dist: black (==19.*,>=19.10.0.b0) ; extra == 'dev'
Requires-Dist: bump2version (==1.*,>=1.0.0) ; extra == 'dev'
Requires-Dist: coverage (==5.*,>=5.1.0) ; extra == 'dev'
Requires-Dist: flake8 (==3.*,>=3.7.9) ; extra == 'dev'
Requires-Dist: ipython (==7.*,>=7.14.0) ; extra == 'dev'
Requires-Dist: mypy (==0.*,>=0.770.0) ; extra == 'dev'
Requires-Dist: pre-commit (==2.*,>=2.3.0) ; extra == 'dev'
Requires-Dist: pylint (==2.*,>=2.5.2) ; extra == 'dev'
Requires-Dist: pytest-runner (==5.*,>=5.2.0) ; extra == 'dev'

[![Build Status](https://travis-ci.com/cw-leia/smartleia.svg?branch=master)](https://travis-ci.com/cw-leia/smartleia)

# SmartLeia

This repository holds the source of the python package used to drive the LEIA
smart card reader. With it, you will be able to:

1. Connect to the LEIA board
2. Choose parameters for the PSS/PTS negotiation
3. Send APDUs and receive the corresponding responses
4. Activate the DFU mode to download new firmware
5. Start a [Virtual SmartCard](https://frankmorgner.github.io/vsmartcard/) 
client to use LEIA as a 'real' smart card reader (through PCSCD relay)

The documentation dedicated to the SmartLeia package can be found [here](https://github.com/cw-leia/smartleia-doc),
please check it to have details about the basic usage and the API for advanced
development features.

## Dependencies

You can install the requirements of the package using:

```sh
pip install requirements.txt
```

If you want to use the [Virtual SmartCard](https://frankmorgner.github.io/vsmartcard/) PCSCD
relay, you will need to install it either from packages (if your distro packages it) or
from sources by compiling it.

## Installation of smartleia

### From git

You may need to use the last version of python builtin's setuptools to install
smartleia from git

```sh
python3 -m pip install --upgrade pip setuptools wheel
```

```sh
git clone https://github.com/cw-leia/smartleia
cd smartleia
python3 -m pip install .
`````

### From pipy

```sh
python3 -m pip install smartleia
```


