Skip to main content

before - import python2 stuff

This is an extremely simple (&tested) library, that allows you to import function that appeared in python2.

In [1]: from before import xrange, range, apply

In [2]: xrange(10)
Out[2]: range(0, 10)

In [3]: range(10)
Out[3]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

In [4]: apply(lambda x,y: x+y, 4, 7)
Out[4]: 11

How to Download

pip install before

All Supported Functionalities

from before import (
    reduce, reload, intern,
    xrange, range, raw_input, input, izip, zip,
    map, filter, round,
    cmp, apply, execfile,
)

Metadata

Release files for before 1.0.2

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

Source distribution (sdist)

Source distribution for before 1.0.2
File Size Uploaded Provenance Actions
before-1.0.2.tar.gz 2.4 kB Without provenance Details for before-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for before 1.0.2
File Interpreter ABI Platform Actions
before-1.0.2-py3-none-any.whl Python 3 none any Details for before-1.0.2-py3-none-any.whl

Total release size: 5.3 kB

Release files / before-1.0.2.tar.gz

Download URL before-1.0.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0d9014a895948aba71cb041287cf11e78966e843883a094801ffa7376754f9f6
BLAKE2b-256 checksum
How to use checksums
ad6266802628522cb9f298b3bf5a34a2f7504122e021670a7d370442fb035788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

Release files / before-1.0.2-py3-none-any.whl

Download URL before-1.0.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aae0cd76c0e8b1f12cbac2d8176723a6e8f90a8a4ddabfd6e1432dcaea31c69
BLAKE2b-256 checksum
How to use checksums
d96469ca9f97ea9ffcdf208fb9477fa8686b70024b035a74716ea6d195d6e752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

Security for before 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

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