English
forfloatrange is a Python library that provides a function called ffrange for generating a sequence of floating-point numbers within a specified range with a given step. The function verifies that the step is not zero to prevent errors and utilizes a generator expression for efficient handling of large value ranges.
Installation
You can install the library using pip:
pip install forfloatrange
Usage
from forfloatrange import ffrange
# Generate a sequence of floating-point numbers from 0.0 to 1.0 with a step of 0.1
for number in ffrange(0.0, 1.0, 0.1):
print(number)
Русский
forfloatrange - это библиотека на Python, предоставляющая функцию под названием ffrange для создания последовательности чисел с плавающей точкой в указанном диапазоне с заданным шагом. Функция проверяет, что шаг не равен нулю, чтобы избежать ошибок, и использует генераторное выражение для эффективной работы с большими диапазонами значений.
Установка
Вы можете установить библиотеку с помощью pip:
pip install forfloatrange
Пример использования
from forfloatrange import ffrange
# Сгенерировать последовательность чисел с плавающей точкой от 0.0 до 1.0 с шагом 0.1
for number in ffrange(0.0, 1.0, 0.1):
print(number)
Metadata
Release files for forfloatrange 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forfloatrange-1.2.1.tar.gz | 1.8 kB | Without provenance | Details for forfloatrange-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forfloatrange-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for forfloatrange-1.2.1-py3-none-any.whl |
Total release size: 4.0 kB
Release files / forfloatrange-1.2.1.tar.gz
| Download URL | forfloatrange-1.2.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79665bb7fbdb36751a6996f25864914a1a0a2994a138e1f37c9fc88aa2236d3a
|
|
BLAKE2b-256 checksum How to use checksums |
7c5c032a9bf1c6a58b10d067f4c6b411fd7ca50a82c6ed20009a1e35f2f22ac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.4.0
|
Release files / forfloatrange-1.2.1-py3-none-any.whl
| Download URL | forfloatrange-1.2.1-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54ac242c616cf754f8380af5ae4b5625649906e4f301519438fe726315908b2d
|
|
BLAKE2b-256 checksum How to use checksums |
74a99b983583f214055490b88aa56a5cd6d7dd3a2a3c67382fc810db383b43ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.4.0
|
Security for forfloatrange 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.