Skip to content

Commit

Permalink
initial version for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
varkenvarken committed Jul 1, 2022
1 parent c1eb2e7 commit f236120
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
*.pyc

# Setuptools distribution folder.
/dist/

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info

drawings/*.bkp
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,23 @@ One of the pieces of information in a slot is the decoder address of the locomot
- [pyserial](https://github.com/pyserial/pyserial)

# installation
TODO

```bash
pip install pylnlib
```

# example programs
A simple monitor program can be run directly
```bash
python –m pylnlib
```
this program can also capture and store the network data to a file and replay this file. For more optionsntype

This program can also capture and store the network data to a file and replay this file. For more options type
```bash
python -m pylnlib --help
```

The scripts directory also contains sample programs that use the library and automate some activities.
The [scripts directory](https://github.com/varkenvarken/pylnlib/tree/master/scripts) also contains sample programs that use the library and automate some activities.

# capture and replay

Expand Down
16 changes: 16 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from setuptools import setup

setup(
name="pylnlib",
version="0.1.1",
description="A library to monitor LocoNet message on a serial interface",
url="https://github.com/varkenvarken/pylnlib",
author="varkenvarken",
author_email="test@example.com",
license="GPLv3",
packages=["pylnlib"],
install_requires=[
"pyserial",
],
zip_safe=False,
)

0 comments on commit f236120

Please sign in to comment.