semvec/pypi-packages huggingface dataset:
telenib 0.0.2
Fetch metadata from remote (https) nifti (gzipped or not).

# telenib

Read header of remote nifti according to [nifti1 spec](https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1.h) and [nifti2 spec](https://nifti.nimh.nih.gov/pub/dist/doc/nifti2.h) either gzipped or not.

## Requirements

server must support [RANGE request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range).

- requests
- nibabel

## Why?

For large nifti files, it is often not feasible to download the full nifti file in order to access the header. 

## Installation

- via pip
```sh
pip install telenib
```

## Usage

```python
from telenib import get_nii_header
from nibabel import Nifti1Header, Nifti2Header

nii_url="https://nifti.nimh.nih.gov/nifti-1/data/avg152T1_RL_nifti.nii.gz"
tele_header = get_nii_header(nii_url)

assert isinstance(tele_header, Nifti1Header) or isinstance(tele_header, Nifti2Header)
```

One could also add any custom header
```python
from telenib import get_nii_header

# from https://nifti.nimh.nih.gov/nifti-1/data
nii_url="https://my.example.co/my/dir/nii.nii.gz"
tele_header = get_nii_header(nii_url, headers={
    'Authorization': f'token my-secret-token'
})

print(tele_header)
```

## License

MIT
jupyter-toc-generator 0.2.0
Generate a table of contents incl. links and anchor tags in a Jupyter Notebook.
Requires Python: >=3.7

# jupyter-toc-generator
Generate a table of contents incl. links and anchor tags. Writes directly to the Jupyter Notebook. 
Alternatively, copy the generated table of contents to clipboard.

* No third party dependencies except Pyperclip if using --clipboard option.
* Requires Python 3.7 or higher. Therefore, compatible with AWS Sagemaker.


## Usage Options
```
    generate_toc /home/user/notebook.ipynb [options]
    generate_toc "C:\My Files\My Notebook.ipynb" [options]
    generate_toc --help

    python generate_toc /home/user/notebook.ipynb [options]
    python generate_toc "C:\My Files\My Notebook.ipynb" [options]
    python generate_toc --help
```

## Options

| Parameter                      | Mandatory | Description                                                                                | Example                   |
|:-------------------------------|:----------|:-------------------------------------------------------------------------------------------|:--------------------------|
|                                | x         | Path to Jupyter notebook (relative or absolute)                                            | /home/user/notebook.ipynp |
| --log_level (-l)               |           | Set Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL). Default: INFO.                      | -l DEBUG                  |
| --skip_anchor_tags (-sa)       |           | Don't add anchor tags to header cells if missing.                                          | -sa                       |
| --skip_write_toc (-sw)         |           | Don't Update TOC directly in notebook or insert if missing.                                | -sw                       |
| --force_toc_in_first_cell (-f) |           | If inserting missing TOC, don't skip overall title cell but always insert into first cell. | -f                        |
| --clipboard (-c)               |           | Copy generated TOC to clipboard.                                                           | -c                        |

## Screenshots
### Notebook before
![Notebook before TOC Generation](static/before_generation.png)

### Notebook after TOC generation
![Notebook after TOC Generation](static/after_generation.png)

### Generated Markdown Code for TOC and anchor tags added to headers
![Generated Markdown](static/generated_markdown.png)
appconfig-json 0.1.5.1014
Package for advanced application config file in json
Requires Python: >=3.6

# Python package for reading Application config file

## Installation

TODO

## How to use the library

TODO

## How to build it

### Prerequisities

``` shell
python -m pip install build twine
```

### Run the batch on win

- just run `build.bat` for publishing the version on testpypi or `build_prod.bat` for production pypi

### Run build only
Run it in the root folder

``` shell
python -m build
```

### How to bump the version

- See [How to Publish an Open-Source Python Package to PyPI | RealPython](https://realpython.com/pypi-publish-python-package/)
- [Documentation](https://pypi.org/project/bumpver/)
- Examples of how to run it (if you add `--dry`, it runs as dry run) 

``` shell
bumpver update --dry
bumpver update --patch --dry
bumpver update --minor --dry
bumpver update --major --dry
bumpver update --major --tag=beta --dry

```


#### Prerequsities

``` shell
python -m pip install bumpver
```


## How to install it for testing locally

Run it in the root folder

``` shell
pip install -e .
```

## How to test it

Run it in the `tests` folder

``` shell
python -m unittest
```

## Useful resources

- [How to upload your python package to PyPi | joelbarmettlerUZH](https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56)
- [Packaging and distributing projects | python.org](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#configuring-your-project)
- [How to Publish an Open-Source Python Package to PyPI | RealPython](https://realpython.com/pypi-publish-python-package/)
nonebot-arkgacha-record 1.0
Nonebot plugin for analysis of gacha records of arknights

📦 setup.py (for humans)
=======================

This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices for `setup.py`, as well as some
commented–out nice–to–haves.

For example, this `setup.py` provides a `$ python setup.py upload`
command, which creates a *universal wheel* (and *sdist*) and uploads
your package to [PyPi] using [Twine], without the need for an annoying
`setup.cfg` file. It also creates/uploads a new git tag, automatically.

In short, `setup.py` files can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)

[Check out the example!][an example setup.py]

Installation
-----

```bash
cd your_project

# Download the setup.py file:
#  download with wget
wget https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py -O setup.py

#  download with curl
curl -O https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py
```

To Do
-----

-   Tests via `$ setup.py test` (if it's concise).

Pull requests are encouraged!

More Resources
--------------

-   [What is setup.py?] on Stack Overflow
-   [Official Python Packaging User Guide](https://packaging.python.org)
-   [The Hitchhiker's Guide to Packaging]
-   [Cookiecutter template for a Python package]

License
-------

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.

  [an example setup.py]: https://github.com/navdeep-G/setup.py/blob/master/setup.py
  [PyPi]: https://docs.python.org/3/distutils/packageindex.html
  [Twine]: https://pypi.python.org/pypi/twine
  [image]: https://farm1.staticflickr.com/628/33173824932_58add34581_k_d.jpg
  [What is setup.py?]: https://stackoverflow.com/questions/1471994/what-is-setup-py
  [The Hitchhiker's Guide to Packaging]: https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/creation.html
  [Cookiecutter template for a Python package]: https://github.com/audreyr/cookiecutter-pypackage
extract-version 1.1.0
Python module for extracting version from the string or directory name
Requires Python: >=3.8

## Extract Version

![license](https://img.shields.io/github/license/yuchdev/ExtractVersion)
![workflow](https://github.com/yuchdev/ExtractVersion/actions/workflows/python-app.yml/badge.svg)
![issues](https://img.shields.io/github/issues/yuchdev/ExtractVersion)

Python module for extracting version from the string or directory name.
Could make use for creating an inventory of installed versions of a particular application 
or finding the latest installed version.

The module offers the following functionality:
* Fetching version string from the string or name of the directory
* Validating version string
* Sorting config and application directories that contain versions in its name

### Examples:

1. We fetch version `2020.1.0` from string `PyCharm-2020.1.0`, or version `1.0` from `my_program_v1.0`

* `AppVersion.Major.Minor` version format

```python
extract_version(version_string="PyCharm-2020.1.0")
> "2020.1.0"
```
* `Major.Minor` version format

```python
extract_version(version_string="my_program_v1.0")
> "1.0"
```

2. Sort directories by the version of application

```python
sort_versions(["PyCharm-2018.1.2", "PyCharm-2018.2.0", "PyCharm-2020.1.0"])
> ["PyCharm-2018.1.2", "PyCharm-2018.2.0", "PyCharm-2020.1.0"]
```

3. In edge cases with more than one pattern present, e.g. `PyCharm-2018.1.2-windows-10.0`, 
we should provide a clue where the version should be extracted from, 
in a form of a pattern-regex, e.g.`PyCharm-(.*)-windows-10.0`
The call of such function may look like this:

```python
extract_version(version_string='PyCharm-2018.1.2-windows-10.0', pattern='PyCharm-(.*)-windows-10.0')
> "2018.1.2"
```

4. Create an inventory of installed versions of a particular application
```python
application_path = "C:/Users/user/AppData/Local/JetBrains/PyCharm"
pycharm_versions = available_versions(versions_path=application_path)
> {"2018.1.2": "PyCharm-2018.1.2", "2018.2.0": "PyCharm-2018.2.0", "2020.1.0": "PyCharm-2020.1.0"}
```