semvec/pypi-packages huggingface dataset:
mitchallen-roll 1.0.14
A simple, lightweight Python package for dice rolling simulations with customizable sides, perfect for games, RPGs, and probabilistic applications
License: MIT
Requires Python: >=3.12
Keywords: dice, generator, random, random-number, roll

# mitchallen-roll

[![PyPI version](https://img.shields.io/pypi/v/mitchallen-roll.svg)](https://pypi.org/project/mitchallen-roll/)
[![Python versions](https://img.shields.io/pypi/pyversions/mitchallen-roll.svg)](https://pypi.org/project/mitchallen-roll/)
[![License](https://img.shields.io/pypi/l/mitchallen-roll.svg)](https://github.com/mitchallen/python-coin-flip/blob/main/LICENSE)
[![Downloads](https://img.shields.io/pypi/dm/mitchallen-roll.svg)](https://pypi.org/project/mitchallen-roll/)
[![CI](https://github.com/mitchallen/python-coin-flip/actions/workflows/test-roll.yml/badge.svg)](https://github.com/mitchallen/python-coin-flip/actions/workflows/test-roll.yml)
[![codecov](https://codecov.io/gh/mitchallen/python-coin-flip/branch/main/graph/badge.svg?flag=mitchallen-roll)](https://codecov.io/gh/mitchallen/python-coin-flip)

A simple dice rolling random number generator for Python.

## Installation

```bash
pip install mitchallen-roll
```

Or with uv:

```bash
uv add mitchallen-roll
```

## Usage

```python
from mitchallen.roll import roll, d6, d20

# Roll a standard 6-sided die
result = roll()  # Returns 1-6

# Roll a custom die
result = roll(20)  # Returns 1-20

# Convenience functions
result = d6()   # Roll a 6-sided die
result = d20()  # Roll a 20-sided die
```

## API Reference

### `roll(sides=6) -> int`

Roll a die with the specified number of sides.

**Parameters:**
- `sides` (int): Number of sides on the die (default: 6, minimum: 1)

**Returns:**
- `int`: A random integer from 1 to sides (inclusive)

**Raises:**
- `ValueError`: If sides is less than 1

### `d6() -> int`

Convenience function to roll a 6-sided die.

**Returns:**
- `int`: A random integer from 1 to 6

### `d20() -> int`

Convenience function to roll a 20-sided die.

**Returns:**
- `int`: A random integer from 1 to 20

## Development

See the main repository README for development setup instructions.

## License

MIT License - see LICENSE file for details
ssb-libtest5 0.0.2
SSB Libtest5
License: MIT
Requires Python: <4.0,>=3.10

# SSB Libtest5

[![PyPI](https://img.shields.io/pypi/v/ssb-libtest5.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/ssb-libtest5.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest5)][pypi status]
[![License](https://img.shields.io/pypi/l/ssb-libtest5)][license]

[![Documentation](https://github.com/statisticsnorway/ssb-libtest5/actions/workflows/docs.yml/badge.svg)][documentation]
[![Tests](https://github.com/statisticsnorway/ssb-libtest5/actions/workflows/tests.yml/badge.svg)][tests]
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest5&metric=coverage)][sonarcov]
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest5&metric=alert_status)][sonarquality]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]

[pypi status]: https://pypi.org/project/ssb-libtest5/
[documentation]: https://statisticsnorway.github.io/ssb-libtest5
[tests]: https://github.com/statisticsnorway/ssb-libtest5/actions?workflow=Tests
[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest5
[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest5
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[poetry]: https://python-poetry.org/

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _SSB Libtest5_ via [pip] from [PyPI]:

```console
pip install ssb-libtest5
```

## Usage

Please see the [Reference Guide] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_SSB Libtest5_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [Statistics Norway]'s [SSB PyPI Template].

[statistics norway]: https://www.ssb.no/en
[pypi]: https://pypi.org/
[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
[file an issue]: https://github.com/statisticsnorway/ssb-libtest5/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/statisticsnorway/ssb-libtest5/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/ssb-libtest5/blob/main/CONTRIBUTING.md
[reference guide]: https://statisticsnorway.github.io/ssb-libtest5/reference.html
ssb-libtest9 0.0.2
SSB Libtest9
License: MIT
Requires Python: <4.0,>=3.10

# SSB Libtest9

[![PyPI](https://img.shields.io/pypi/v/ssb-libtest9.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/ssb-libtest9.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest9)][pypi status]
[![License](https://img.shields.io/pypi/l/ssb-libtest9)][license]

[![Documentation](https://github.com/statisticsnorway/ssb-libtest9/actions/workflows/docs.yml/badge.svg)][documentation]
[![Tests](https://github.com/statisticsnorway/ssb-libtest9/actions/workflows/tests.yml/badge.svg)][tests]
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest9&metric=coverage)][sonarcov]
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest9&metric=alert_status)][sonarquality]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]

[pypi status]: https://pypi.org/project/ssb-libtest9/
[documentation]: https://statisticsnorway.github.io/ssb-libtest9
[tests]: https://github.com/statisticsnorway/ssb-libtest9/actions?workflow=Tests
[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest9
[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest9
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[poetry]: https://python-poetry.org/

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _SSB Libtest9_ via [pip] from [PyPI]:

```console
pip install ssb-libtest9
```

## Usage

Please see the [Reference Guide] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_SSB Libtest9_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [Statistics Norway]'s [SSB PyPI Template].

[statistics norway]: https://www.ssb.no/en
[pypi]: https://pypi.org/
[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
[file an issue]: https://github.com/statisticsnorway/ssb-libtest9/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/statisticsnorway/ssb-libtest9/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/ssb-libtest9/blob/main/CONTRIBUTING.md
[reference guide]: https://statisticsnorway.github.io/ssb-libtest9/reference.html
simplified_scrapy 2.0.1
A Simple Distributed Web Crawle
License: MIT
Requires Python: >=3

# simplified-scrapy
simplified scrapy, A Simple Web Crawle
# Requirements
+ Python 2.7, 3.0+
+ Works on Linux, Windows, Mac OSX, BSD
# run  
```
from simplified_scrapy.simplified_main import SimplifiedMain
SimplifiedMain.startThread()
```
# Demo
Custom crawler class needs to extend Spider class
```
from core.spider import Spider 
class DemoSpider(Spider):
```
Here is an example of collecting data
```
from simplified_scrapy.spider import Spider, SimplifiedDoc
class DemoSpider(Spider):
  name = 'demo-spider'
  start_urls = ['http://quotes.toscrape.com/']
  allowed_domains = ['quotes.toscrape.com']
  def extract(self, url, html, models, modelNames):
    doc = SimplifiedDoc(html)
    lstA = doc.listA(url=url["url"])
    return [{"Urls": lstA, "Data": None}]

from simplified_scrapy.simplified_main import SimplifiedMain
SimplifiedMain.startThread(DemoSpider())
```

# pip install
```
pip install simplified-scrapy
```
[Examples](https://github.com/yiyedata/simplified-scrapy-demo)

# Legal Issues
In particular, please be aware that

>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Translated to human words:

In case your use of the software forms the basis of copyright infringement, or you use the software for any other illegal purposes, the authors cannot take any responsibility for you.

We only ship the code here, and how you are going to use it is left to your own discretion.
ssb-libtest8 0.0.1
SSB Libtest8
License: MIT
Requires Python: <4.0,>=3.10

# SSB Libtest8

[![PyPI](https://img.shields.io/pypi/v/ssb-libtest8.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/ssb-libtest8.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest8)][pypi status]
[![License](https://img.shields.io/pypi/l/ssb-libtest8)][license]

[![Documentation](https://github.com/statisticsnorway/ssb-libtest8/actions/workflows/docs.yml/badge.svg)][documentation]
[![Tests](https://github.com/statisticsnorway/ssb-libtest8/actions/workflows/tests.yml/badge.svg)][tests]
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest8&metric=coverage)][sonarcov]
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest8&metric=alert_status)][sonarquality]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]

[pypi status]: https://pypi.org/project/ssb-libtest8/
[documentation]: https://statisticsnorway.github.io/ssb-libtest8
[tests]: https://github.com/statisticsnorway/ssb-libtest8/actions?workflow=Tests
[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest8
[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest8
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[poetry]: https://python-poetry.org/

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _SSB Libtest8_ via [pip] from [PyPI]:

```console
pip install ssb-libtest8
```

## Usage

Please see the [Reference Guide] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_SSB Libtest8_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [Statistics Norway]'s [SSB PyPI Template].

[statistics norway]: https://www.ssb.no/en
[pypi]: https://pypi.org/
[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
[file an issue]: https://github.com/statisticsnorway/ssb-libtest8/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/statisticsnorway/ssb-libtest8/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/ssb-libtest8/blob/main/CONTRIBUTING.md
[reference guide]: https://statisticsnorway.github.io/ssb-libtest8/reference.html
ssb-libtest7 0.0.1
SSB Libtest7
License: MIT
Requires Python: <4.0,>=3.10

# SSB Libtest7

[![PyPI](https://img.shields.io/pypi/v/ssb-libtest7.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/ssb-libtest7.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest7)][pypi status]
[![License](https://img.shields.io/pypi/l/ssb-libtest7)][license]

[![Documentation](https://github.com/statisticsnorway/ssb-libtest7/actions/workflows/docs.yml/badge.svg)][documentation]
[![Tests](https://github.com/statisticsnorway/ssb-libtest7/actions/workflows/tests.yml/badge.svg)][tests]
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest7&metric=coverage)][sonarcov]
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest7&metric=alert_status)][sonarquality]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]

[pypi status]: https://pypi.org/project/ssb-libtest7/
[documentation]: https://statisticsnorway.github.io/ssb-libtest7
[tests]: https://github.com/statisticsnorway/ssb-libtest7/actions?workflow=Tests
[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest7
[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest7
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[poetry]: https://python-poetry.org/

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _SSB Libtest7_ via [pip] from [PyPI]:

```console
pip install ssb-libtest7
```

## Usage

Please see the [Reference Guide] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_SSB Libtest7_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [Statistics Norway]'s [SSB PyPI Template].

[statistics norway]: https://www.ssb.no/en
[pypi]: https://pypi.org/
[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
[file an issue]: https://github.com/statisticsnorway/ssb-libtest7/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/statisticsnorway/ssb-libtest7/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/ssb-libtest7/blob/main/CONTRIBUTING.md
[reference guide]: https://statisticsnorway.github.io/ssb-libtest7/reference.html
ssb-libtest3 0.0.1
SSB Libtest3
License: MIT
Requires Python: <4.0,>=3.10

# SSB Libtest3

[![PyPI](https://img.shields.io/pypi/v/ssb-libtest3.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/ssb-libtest3.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest3)][pypi status]
[![License](https://img.shields.io/pypi/l/ssb-libtest3)][license]

[![Documentation](https://github.com/statisticsnorway/ssb-libtest3/actions/workflows/docs.yml/badge.svg)][documentation]
[![Tests](https://github.com/statisticsnorway/ssb-libtest3/actions/workflows/tests.yml/badge.svg)][tests]
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest3&metric=coverage)][sonarcov]
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest3&metric=alert_status)][sonarquality]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]

[pypi status]: https://pypi.org/project/ssb-libtest3/
[documentation]: https://statisticsnorway.github.io/ssb-libtest3
[tests]: https://github.com/statisticsnorway/ssb-libtest3/actions?workflow=Tests
[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest3
[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest3
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[poetry]: https://python-poetry.org/

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _SSB Libtest3_ via [pip] from [PyPI]:

```console
pip install ssb-libtest3
```

## Usage

Please see the [Reference Guide] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_SSB Libtest3_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [Statistics Norway]'s [SSB PyPI Template].

[statistics norway]: https://www.ssb.no/en
[pypi]: https://pypi.org/
[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
[file an issue]: https://github.com/statisticsnorway/ssb-libtest3/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/statisticsnorway/ssb-libtest3/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/ssb-libtest3/blob/main/CONTRIBUTING.md
[reference guide]: https://statisticsnorway.github.io/ssb-libtest3/reference.html