semvec/pypi-packages huggingface dataset:
fidx 1.1.2
Float and custom indexes in Python
License: MIT

# fidx
> A module for float and custom indexes in Python

Allows to use float indexes to access lists, tuples, … in percentage (e.g. 0.5 is the middle item).  
Allows also to add custom index types to existing types or to custom ones.

## Installation

```sh
pip install fidx
```

## Usage example

```python
>>> import fidx

>>> fidx([1,2,3])[.5]
2

>>> l = fidx([1,2,3,4])
>>> l[:.5], l[.5:]
([1, 2], [3, 4])

>>> t = fidx.tuple(i//2 for i in range(0,10))
>>> t[.2:-.2:.2]
(1, 2, 3)
```

_For more examples and usage, please refer to the [Wiki][wiki]._

## About

Davide Peressoni – dpdmancul+fidx@gmail.com

Distributed under the MIT license. See ``LICENSE`` for more information.

<https://gitlab.com/DPDmancul/>

## Changelog

* _version **1.1.0**_
  - Fix of #1
  - Added `float_id` method to extended classes.
  - Added `fidx.float_idx_of` function.

* _version **1.1.1** and **1.1.2**_
  - Better support for NumPy indexes.

<!-- Markdown link & img dfn's -->
[wiki]: https://gitlab.com/DPDmancul/fidx/-/wikis/home
sebae 0.1.4
Boilerplate tool for Python C/C++ extension
License: MIT
Requires Python: >=3.6

# sebae
A simple tool for generating Python C/C++ extension boilerplate code.

Note the boilerplate code generated by sebae is self-contained. 
The only necessary dependency is Python itself.

## Usage
### Installation
```bash
pip install sebae
```
### Create boilerplate project
Initialize a boilerplate project
```bash
> sebae init [optional project directory]
Select init schema:
1.pybind11
selection ([q]uit):
> 1
Package name:
> test_pkg
Author:
> actcwlf
Author email:
> abc@def.com
Initializing pybind11 schema project test_pkg
Finish!
```

If no project directory is specified, sebae will use `pybind11_project` as default project directory.

### Install C++ extension
```bash
cd pybind11_project
pip install .
```

### Use the extension in python
To avoid name conflict, make sure you are not in project directory
```bash
cd ..
python
```

In python cmd
```bash
Python 3.7 ....
>>> import test_pkg
>>> test_pkg.add(1, 2)
3.0
```