Skip to main content

prsample

Inplementation of pseudo-random sampling from a

Installation

pip3 install prsample

or

pip3 install --user prsample

Example usage

The minimum required to

class Example():
    def __init__(self, ... ):
    	# State to describe an example
        return

    def __hash__(self): 
        return super.__hash__((self.class_a, self.a, self.class_b, self.b))

    def __str__(self): 
        return str(self.class_a)  + '(' + str(self.a) + ') ' + str(self.class_b) + '(' +str(self.b) + ')'

    def is_valid(self, class_list):
    	# Optional checks go here
        return True

    def get(self):
        return (self.class_a, self.a, self.class_b, self.b)

Metadata

Release files for prsample 0.0.5

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

Source distribution (sdist)

Source distribution for prsample 0.0.5
File Size Uploaded Provenance
prsample-0.0.5.tar.gz 6.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 13.8 kB

Release files / prsample-0.0.5.tar.gz

Download URL prsample-0.0.5.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
11348598d80c5b562e086027dd7b0ee4f2ea720122b011acbf8e3af3ebbcb337
BLAKE2b-256 checksum
How to use checksums
1ccf11b967c8c4081689896c9a05f006c581cc5dc0bc359b50917fe0460bdab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Release files / prsample-0.0.5-py3-none-any.whl

Download URL prsample-0.0.5-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2968315030672df5cca0b85c40c4d2591d0831118a4996dfe1c269c8deb00c92
BLAKE2b-256 checksum
How to use checksums
af705a951dbe170dc228d5485b169b61efadf912ed1e5209a35eca2d9910d76e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Security for prsample 0.0.5

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.

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