A pseudo-random data sampler
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prsample-0.0.5.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prsample-0.0.5.tar.gz.
File metadata
- Download URL: prsample-0.0.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11348598d80c5b562e086027dd7b0ee4f2ea720122b011acbf8e3af3ebbcb337
|
|
| MD5 |
c9b001f5a014c1f33420419fa5d7c607
|
|
| BLAKE2b-256 |
1ccf11b967c8c4081689896c9a05f006c581cc5dc0bc359b50917fe0460bdab0
|
File details
Details for the file prsample-0.0.5-py3-none-any.whl.
File metadata
- Download URL: prsample-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2968315030672df5cca0b85c40c4d2591d0831118a4996dfe1c269c8deb00c92
|
|
| MD5 |
b83dab16b20ec4ad613e5e42bd10b3c1
|
|
| BLAKE2b-256 |
af705a951dbe170dc228d5485b169b61efadf912ed1e5209a35eca2d9910d76e
|