semvec/pypi-packages huggingface dataset:
DCC-EX-py 1.0.0
A simple way to connect to your DCC-EX controlled model railroad using python code without having to write DCC-EX commands into code. 
License: MIT
Requires Python: >=3.11
Keywords: DCC-EX_py

# DCC-EX_py


[![image](https://img.shields.io/pypi/v/DCC-EX_py.svg)](https://pypi.python.org/pypi/DCC-EX_py)


A simple way to connect to your DCC-EX controlled model railroad using python code without having to write DCC-EX commands manually.

[DCC-EX](https://dcc-ex.com/#gsc.tab=0) is an Arduino powered DIY tool for running DCC model trains on a layout.
This package wraps the protocol described in the [DCC-EX Native Commands Summary Reference](https://dcc-ex.com/reference/software/command-summary-consolidated.html) to be easy to use from python code.


-   Free software: MIT License
-   Documentation: https://github.com/Zenith08/DCC-EX_py/wiki

This package is in early development, breaking changes may happen until it is marked version 1.0.

## Features

-   Connects to a DCC-EX base station and wraps commands to make automating layouts easier.
-   Parses feedback from the command station and provides callbacks for important events.

## Get Started
Documentation is available on the [GitHub Wiki](https://github.com/Zenith08/DCC-EX_py/wiki) including code for the examples.

## Examples
### Single Sound-Enabled Train:
[![Amtrak Example](http://img.youtube.com/vi/8A_f9tJLWSE/0.jpg)](https://youtu.be/8A_f9tJLWSE)

This video shows a train running a simple loop with sound triggers and stopping based on sensors in the track.

### Multiple Complex Trains
[![Multitrain Example](http://img.youtube.com/vi/ylQdYiYuVxI/0.jpg)](https://youtu.be/ylQdYiYuVxI)

This video shows what can be done when multiple trains are programmed to perform complex behavior. The routes are all pre-planned and designed to loop.

Be aware that the crossing signal is being controlled by EX-RAIL automation on the command station instead of externally by the python script.

<sub><sup>This project is not an official DCC-EX project nor is it endorsed by them. I just used the name that best decribes the funcionality and will change it if it creates issues.</sup></sub>
module-5mlet-package 2.0.0
Descrição da biblioteca Module 5MLET
License: MIT
Requires Python: >=3.6

# 💰 My Investment

My Investment is a simple and easy-to-use Python library for performing common financial calculations related to investments, such as return on investment, compound interest, monthly interest rate conversion, and CAGR (Compound Annual Growth Rate).

## 📦 Installation

Install the package using `pip`:

```sh
pip install module-5mlet-package
```
> 💡 Note: Make sure you have Python 3.7+ installed.

## 🚀 Usage

Here's a basic example of how to use the library:

```py
from investments import calculate_investment_return, calculate_compound_interest

initial_value = 1000
final_value = 1500

# Calculate investment return
investment_return = calculate_investment_return(initial_value, final_value)
print(f"Investment return: {investment_return:.2f}%")

# Calculate compound interest
final_with_interest = calculate_compound_interest(initial_value, 6, 5)
print(f"Final value with compound interest: ${final_with_interest:.2f}")
```

## 📚 Features

* `calculate_investment_return()`: Calculates the total return of an investment.

* `calculate_compound_interest()`: Computes final amount using compound interest.

* `convert_annual_rate_to_monthly()`: Converts an annual interest rate to a monthly one.

* `calculate_cagr()`: Calculates the Compound Annual Growth Rate.

## 🧪 Running Tests

You can run the unit tests using:

```bash
python -m unittest discover tests
```

## 📄 License

This project is licensed under the MIT License.
nusb 0.1.0
Python bindings to nusb
License: MIT
Requires Python: >=3.10

# `python-nusb`

Python bindings to [`nusb`](https://docs.rs/nusb/latest/nusb/).

## Hardware in the loop tests

Hardware in the loop tests assume a [Cynthion](https://cynthion.readthedocs.io/) running [Facedancer](https://facedancer.readthedocs.io/) is connected.
Both the control and the target C port must be connected.

To run the tests, ensure dependencies are installed with `pdm install -dG test`, then run `pdm test`.