semvec/pypi-packages huggingface dataset:
pysu-bindings 0.0.2
Python package with C++ bindings for all your osu! server needs.
Requires Python: >=3.6

# pysu_bindings

A python package to provide you with many useful tools for osu! servers, written in C++ for the best speeds possible.

## What?

As most people know, Python is considerably slower in it's operations compared to other languages, and some things are time critical. We have the ability to run C++ code in Python with the use of libraries such as pybind11 (what this project uses) to utilise C++'s speed at a cost of well- writing bindings. This package is a ready to use module for some common features required in osu! servers (that are typically too slow) in Python with C++ speed.

## Compiling

As this will be uploaded on PyPI, you shouldn't need to compile it. However if you do, you just simply run `python3.9 setup.py sdist bdist_wheel`, and install the .whl file it generates in the dist folder.

## Usage

Currently there's no documentation on usage, but in the respective sub folders of each module there will soon be examples (and also test files for speed comparisons).

## Testing

Soon.
pathimp 1.4.0
Import Python modules from any file system path.

[![PyPI](https://img.shields.io/pypi/v/pathimp.svg)](https://pypi.python.org/pypi/pathimp/#history)

# pathimp

Import Python modules from any file system path.

## Installation

```sh
pip3 install pathimp
```

## Usage

```python
import pathimp

pathimp.import_module(
    name='my_module',              # Name of the module directory or file.
    path='../path/to/parent/dir',  # Path or list of paths to search.
    notfound='error')              # Raise 'error' or 'ignore' when not found.

import my_module
```

## Background

When using `import`, Python tries to find the module in `sys.path`. Additional
search directories can be added to `sys.path` or specified via the `PYTHONPATH`
environment variable. This solution works well in many cases. However, adding
directories to `sys.path` makes all modules inside the added directories
available to import. This pollution of the import path can lead to accidentally
importing undesired packages. The `pathimp` package allows importing packages
from a file system path without polluting the Python import path.

## Details

After calling `pathimp.import_module()`, the module is available in
`sys.modules` and can be imported normally by later code. The function also
returns the module, allowing to use it directly without further import:

```python
import pathimp
my_module = pathimp.import_module('my_module', '../path/to/parent/dir')
```

If the module is not found as a directory or file under the provided path, a
`ModuleNotFoundError` is raied. The exception can be disable by passing the
`notfound='ignore'` argument:

```python
pathimp.import_module('my_module', '../path/to/parent/dir', notfound='ignore')
```

Whether the import succeeded can still be found out by looking at the return
value, which is either the module instance or `False` if the module was not
found.