Skip to main content

RedPackets Split & Return split_list if succeed & Raise Exception if failed

Installation

pip install redpackets

Usage

import redpackets

# Redpackets Split
redpackets.split_dollar(total, num, min=0.01)
redpackets.split_cent(total, num, min=1)
# cent=False equals split_dollar
# cent=True equals split_cent
redpackets.split(total, num, min=None, cent=False)

# Exchange Cent & Dollar
redpackets.cent(dollar, rate=100, cast_func=int)
redpackets.dollar(cent, rate=100, cast_func=float)

# Mul & Div
redpackets.mul(multiplicand, multiplicator, cast_func=float)
redpackets.div(dividend, divisor, cast_func=float)

Metadata

Release files for redpackets 1.1.0

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

Source distribution (sdist)

Source distribution for redpackets 1.1.0
File Size Uploaded Provenance Actions
redpackets-1.1.0.tar.gz 2.7 kB Without provenance Details for redpackets-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for redpackets 1.1.0
File Interpreter ABI Platform Actions
redpackets-1.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for redpackets-1.1.0-py2.py3-none-any.whl

Total release size: 7.1 kB

Release files / redpackets-1.1.0.tar.gz

Download URL redpackets-1.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1173fae599a2e2a0cf5f97f7c958ef3abe9814c1dce69554855fd7603e414487
BLAKE2b-256 checksum
How to use checksums
085b8fe1362e7fcb5f6356436b04ab76df8e3cf50d4a0b05b0ecf4b2da41414f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / redpackets-1.1.0-py2.py3-none-any.whl

Download URL redpackets-1.1.0-py2.py3-none-any.whl
Size 4.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
47e45a0cbebea2c8caf49bbac22e4f3e01c8fbb9d8c62ce847613416d7961e20
BLAKE2b-256 checksum
How to use checksums
5830a9f83bc08341a8dcfeb74ab0204f2dc49b48111146cf8ed2ec0f042e77fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for redpackets 1.1.0

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