Skip to main content

Float Range

Float Range is a range-like generator for float numbers.

Usage

import float_range

for i in float_range.range(10):
    print(i, end=' ')
# >>> 0 1 2 3 4 5 6 7 8 9

for i in float_range.range(1, 5, 0.5):
    print(i, end=' ')
# >>> 1 1.5 2.0 2.5 3.0 3.5 4.0 4.5

for i in float_range.range(5, 1.5, -0.7):
    print(i, end=' ')
# >>> 5 4.3 3.6 2.9 2.2

Installation

Simply

$ pip install float_range

and you are good to go.

P.S.: If installing from outside of a virtualenv you may need to prefix that with sudo though.

Requirements

Tests run against CPython 2.6+ and 3.2+. Also Pypy (2.7) and Pypy3 (3.3) are supported. However it may run smoothly on any Python 2.3+ implementation.

Metadata

Release files for float_range 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for float_range 0.1.3
File Size Uploaded Provenance Actions
float_range-0.1.3.tar.gz 1.4 kB Without provenance Details for float_range-0.1.3.tar.gz

Release files / float_range-0.1.3.tar.gz

Download URL float_range-0.1.3.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1d10c9ef3576a865709c77b5148dfbb0d89e2348902760b33f469297d3ae0201
BLAKE2b-256 checksum
How to use checksums
fc2900b479afcf345ef0b3f087685794413f45e78c79a7011055e68f41d3e6e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for float_range 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page