semvec/pypi-packages huggingface dataset:
volumential 2017.1a0
Volume potential computation powered by FMM.
License: MIT

# Volumential

Volumential (VOLUME poteNTIAL) provides toolset to solve volume potential integral equations
efficiently via Fast Multipole Method.

## Documentation

[Browse the documentation online.](http://xiaoyu-wei.com/docs/volumential/)

## License

Volumential is developed and released under the terms of the MIT license,
though it also makes use of third-party packages under their own licensing
terms. See the [LICENSE](./LICENSE.md) file for details.

## Acknowledgements

We would like to thank people and organizations that contributed to or supported the
Volumential project, without whom the project would not have been possible.

The research that started the Volumential project was supported by the
[National Science Foundation][nsf] under grant DMS-1654756,
and by the [Department of Computer Science][uiuc-cs] at the
[University of Illinois at Urbana-Champaign][uiuc].
Part of the work was performed while the authors were participating in
the [HKUST][hkust]-[ICERM][icerm] workshop "Integral Equation Methods, Fast
Algorithms and Their Applications to Fluid Dynamics and Materials
Science" held in 2017.

Thanks very much to the [Department of Mathematics][hkust-math] at
[Hong Kong University of Science and Technology][hkust]
for funding Xiaoyu Wei to work on the project
as a PhD student under the Postgraduate Studentship and
the Overseas Research Award.

The project's name `volumential` [courtesy of Andreas Klöckner][volumential-name].

[nsf]: https://www.nsf.gov/
[hkust-math]: https://www.math.ust.hk/
[hkust]: https://www.ust.hk/home
[icerm]: https://icerm.brown.edu/
[uiuc-cs]: https://cs.illinois.edu/
[uiuc]: https://illinois.edu/
[volumential-name]: https://gitlab.tiker.net/xywei/volumential/issues/2
gen-pptx-from-simple-text 2.0.0
CLI to generate powerpoint slides from simple text file[s].
License: MIT
Requires Python: >=3.4

# gen-pptx-from-simple-text

> CLI to generate powerpoint slides from simple text file[s]

## How to install?
> https://pypi.org/project/gen-pptx-from-simple-text/
```bash
pip install gen-pptx-from-simple-text
```

## How should the simple text file like for generating pptx?

Here is a sample text file - [resources/dummy.txt](resources/dummy.txt).
Each section separated by an empty line makes a slide in the generated pptx.

## How to run the CLI?
```bash
$ pptx --help
Usage: pptx [OPTIONS] LYRICS_FILES...

  A powerpoint generator.

Options:
  -pt, --pptx-template-path PATH  [required]
  -ms, --master-slide-idx INTEGER
                                  [default: 0]
  -sl, --slide-layout-idx INTEGER
                                  [default: 6]
  -fs, --font-size INTEGER        [default: 32]
  -fn, --font-name TEXT           [default: Calibri]
  -ns, --dst-dir TEXT             [default: ./generated-pptx]
  -ta, --slide-txt-alignment [left|middle|right]
                                  [default: left]
  --help                          Show this message and exit.
```

```bash
pptx resources/dummy.txt -pt resources/default.pptx
```
**Notes:**
- `--pptx-template-path | -pt` is expecting either a directory with pptx templates or
a pptx template file. When it is a directory, `pptx` will chose one among all the pptx
files found in the directory. The pptx template file should be without any change to
master slide index or in slide layout index. If there are any changes to master slide
index or slide layout, you need to pass corresponding `int` type to `-ms` and `-sl`
options.
A sample pptx template file is available here [resources/black.pptx](resources/).


## FAQs
### How can I add same footer to all pptx[s] built using the CLI?

Add footer to pptx template file to pass with `--pptx-template-path` option

### How to get different backgrounds for the generated pptx files using the CLI?

Create different pptx template files with different backgrounds and pass it on to
`--pptx-template-path` option. See [this](https://youtu.be/AftDaPQwhPg) video on
creating pptx template file.

## How to setup development environment?

```bash
REPO_NAME=gen-pptx-from-simple-text
python -m ~/.venv_${REPO_NAME}
git clone https://github.com/sukujgrg/${REPO_NAME}.git
cd ${REPO_NAME}
source ~/.venv_${REPO_NAME}/bin/activate
pip install -r requirements.txt
```
wtc 1.2.1
Compress osu replay lzma bytestrings
License: MIT
Keywords: osu!, compression, lzma, python, replay, osr

[![PyPI version](https://badge.fury.io/py/wtc.svg)](https://pypi.org/project/wtc/)

# WTC

WTC is an extension of the lzma compression format, specifically designed to make osu!std replays smaller before storing them. It reduces the size of certain datatypes in the original .osr format, achieving ~40% lossy compression ratios.

| Part | Original lzma datatype | WTC datatype |
| --- | --- | --- |
| w (ms since preivous frame) | Long (8 bytes) | 24bit Integer (3 bytes)|
| x (x-cord) | Float (4 bytes) | Short (2 bytes) |
| y (y-cord) | Float (4 bytes) | Short (2 bytes) |
| z (bit combination of keypresses) | Integer (4 bytes) | Char (1 byte) |

This compresses the original 20 byte frame to an 8 byte frame, but not without losses. Precision is lost on w, x, and y, but not z, because the keypressed bit combination will never go above 4 bits for osu!standard. Though it may be larger for other gamemodes such as 7k mania, this compressor is explicitly for osu!standard.

WTC compression achieves an average of 40% ±5 compression (Not a formally calculated number - simply based on experience).

Installation:

```bash
$ pip install git+git://github.com/osu-anticheat/wtc-lzma-compressor
```

Usage:

```python
import wtc

# to compress an lzma bytestring
wtc_bytestring = wtc.compress(lzma_bytestring)

# to decompress a wtc bytestring into an lzma bytestring
lzma_bytestring = wtc.decompress(wtc_bytestring)

# compress and decompress are (almost) inverse operations, so lzma_bytestring ≈ wtc.decompress(wtc.compress(lzma_bytestring)).
# some precision is lost, so the strings are not identical.
```