Client package for Binubuo synthetic data generator
Project description
Binubuo
Binubuo python library is a powerful client to the Binubuo Synthetic Data API from https://binubuo.com. The API can be used to create dynamic an realistic looking synthetic data that can be used very easily for functional and performance testing as well as validating database design. One major strength of the Binubuo client, is that it integrates tightly with your database, and can use your existing design and data to create new synthetic data. This means that you can very quickly create test data from production data, that can be used by everyone in your organisation without worrying about data protection and other legal or regulatory requirements. The data will look like your production data, except it will be randomly created.
Highlighted Features
- 150+ Reeal life data generators
- Pre made dataset creators for very quick prototyping
- Postgres and Oracle integration
- Create synthetic dataset creators directly from your table definition
Installing Binubuo client and supported versions
Binubuo is available and installable from PyPI:
$ python -m pip install binubuo
Binubuo officially supports Python 2.7 & 3.6+.
Registering an account
You can register an account on the website; just click the "Sign up" link in the menu bar or click the "Create account now!" button on the front page, or you can create an account from the client itself. Just run the create_account
function and supply an account name and email for the registration.:
>>> from binubuo import binubuo
>>> b = binubuo()
>>> b.create_account("my_account_name", "my_email@example.com")
Please go to this url in your browser: https://binubuo.com/ords/r/binubuo_ui/binubuo/challenge-response?p_sha=1311FE507E555130581C2E70000
Please input the code displayed in the above URL: 468039
Your API key for Binubuo is (please save it.): 2C48D11E2BCE3731DD0E22E8EEA584A6F756BED5
>>> b.key("2C48D11E2BCE3731DD0E22E8EEA584A6F756BED5")
That is it. You are now ready to use the Binubuo client.
Documentation
Client documentation Available here
Binubuo includes more than 150+ real life data generators: Data Generators Documentation and API Reference
Quick example
You can go ahead and use the client without an account using a temporary access key, although your data rate and ability to store settings and datasets are limited. Simply start the client and start generating data:
>>> from binubuo import binubuo
>>> b = binubuo()
>>> print(b.generate('person', 'full_name'))
Andrew Howard
>>> print(b.generate('finance', 'bank_account_id'))
GE02Pu5783332775138823
>>> print(b.generate('consumer', 'food_item'))
Pumpkin Spice, Atlantic Salmon, 2 Bonless Fillets
>>> print(b.generate('time', 'date'))
1945-02-10T17:37:09Z
Using the client with a database
One of the strengths of Binubuo is that you can use your existing tables and data to very quickly create synthetic data creators, enabling you to create the perfect test data that matches your real data, both the way it looks (data domain) but equally important, also the way the data is distributed and formatted.
Databases currently supported:
- Oracle (cx_Oracle library required)
- Postgres (psycopg2 library required)
- Yugabyte (psycopg2 library required)
Here is a quick postgres example, that will create a copy of the sample schema table customer, called customer_copy with 100 rows of synthetic data:
>>> from binubuo import binubuoPostgres
>>> bo = binubuoPostgres('394129D632B0A4E9913E491286EB428DD80CEFF0', 'binu', 'postgres', 'mypassword')
>>> bo.copy_table(source_table='customer', target_table='customer_copy', copy_method='dataset', drop_target_if_exist=True, alternate_dataset_name=False, use_comments=False, use_infer=True, use_sample_data=True, data_rows=100)
That is how quickly you can create test data. For detailed documentation and reference commands, take a look at the docs online
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file binubuo-0.2.1.tar.gz
.
File metadata
- Download URL: binubuo-0.2.1.tar.gz
- Upload date:
- Size: 64.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6603a45fa7dd4e9c3791e05e3ee4cc101d7cf8f7ca502b43ca6f85e29d791029 |
|
MD5 | 23912fa5761154ae0191b21607d4656a |
|
BLAKE2b-256 | 75e8438a2b298e5329843574f17325749be90da9e2a62e7c89fcb85bcc83133e |
File details
Details for the file binubuo-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: binubuo-0.2.1-py3-none-any.whl
- Upload date:
- Size: 89.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 451367acc90859af895e4d5b1676dbb6147af985fe8815c73b57990911dc2089 |
|
MD5 | 7f97618b62d59ff108c4de6f270781d0 |
|
BLAKE2b-256 | 2920194a6c4a6b7ce97ac69e625c210e2c5df89b31f642d76e64738ad6d034f6 |