binubuo


Namebinubuo JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://binubuo.com
SummaryClient package for Binubuo synthetic data generator
upload_time2023-01-30 09:38:51
maintainer
docs_urlNone
authorMorten
requires_python>=2.7, !=3.0.*, !=3.1.*, !=3.2.*
license
keywords synthetic testdata mocking
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Binubuo

Binubuo python library is a powerful client to the Binubuo Synthetic Data API from [**https://binubuo.com**](https://binubuo.com/ords/r/binubuo_ui/binubuo). 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.:

```python
>>> 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](https://binubuo.com/ords/r/binubuo_ui/binubuo/binubuo-documentation-page?p23_page_name=Python&p23_section_id=240&p23_section_name=Clients)

Binubuo includes more than 150+ real life data generators: [Data Generators Documentation and API Reference](https://binubuo.com/ords/r/binubuo_ui/binubuo/binubuo-documentation-section?p22_section_name=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:

```python
>>> 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:

```python
>>> 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**](https://binubuo.com/ords/r/binubuo_ui/binubuo/binubuo-documentation)

            

Raw data

            {
    "_id": null,
    "home_page": "https://binubuo.com",
    "name": "binubuo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
    "maintainer_email": "",
    "keywords": "synthetic,testdata,mocking",
    "author": "Morten",
    "author_email": "morten@binubuo.com",
    "download_url": "https://files.pythonhosted.org/packages/bf/23/a201a8c3fce2726bb4c3fbaa5586ed6bca5605e81ea1e2aa566b42e2d2ce/binubuo-0.2.tar.gz",
    "platform": null,
    "description": "# Binubuo\r\n\r\nBinubuo python library is a powerful client to the Binubuo Synthetic Data API from [**https://binubuo.com**](https://binubuo.com/ords/r/binubuo_ui/binubuo). 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.\r\n\r\n**Highlighted Features**\r\n\r\n- 150+ Reeal life data generators\r\n- Pre made dataset creators for very quick prototyping\r\n- Postgres and Oracle integration\r\n- Create synthetic dataset creators directly from your table definition\r\n\r\n## Installing Binubuo client and supported versions\r\n\r\nBinubuo is available and installable from PyPI:\r\n\r\n    $ python -m pip install binubuo\r\n\r\nBinubuo officially supports Python 2.7 & 3.6+.\r\n\r\n## Registering an account\r\n\r\nYou 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.:\r\n\r\n```python\r\n>>> from binubuo import binubuo\r\n>>> b = binubuo()\r\n>>> b.create_account(\"my_account_name\", \"my_email@example.com\")\r\nPlease go to this url in your browser: https://binubuo.com/ords/r/binubuo_ui/binubuo/challenge-response?p_sha=1311FE507E555130581C2E70000\r\nPlease input the code displayed in the above URL: 468039\r\nYour API key for Binubuo is (please save it.): 2C48D11E2BCE3731DD0E22E8EEA584A6F756BED5\r\n>>> b.key(\"2C48D11E2BCE3731DD0E22E8EEA584A6F756BED5\")\r\n```\r\n\r\nThat is it. You are now ready to use the Binubuo client.\r\n\r\n\r\n## Documentation\r\n\r\nClient documentation [Available here](https://binubuo.com/ords/r/binubuo_ui/binubuo/binubuo-documentation-page?p23_page_name=Python&p23_section_id=240&p23_section_name=Clients)\r\n\r\nBinubuo includes more than 150+ real life data generators: [Data Generators Documentation and API Reference](https://binubuo.com/ords/r/binubuo_ui/binubuo/binubuo-documentation-section?p22_section_name=Reference)\r\n\r\n## Quick example\r\n\r\nYou 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:\r\n\r\n```python\r\n>>> from binubuo import binubuo\r\n>>> b = binubuo()\r\n>>> print(b.generate('person', 'full_name'))\r\nAndrew Howard\r\n>>> print(b.generate('finance', 'bank_account_id'))\r\nGE02Pu5783332775138823\r\n>>> print(b.generate('consumer', 'food_item'))\r\nPumpkin Spice, Atlantic Salmon, 2 Bonless Fillets\r\n>>> print(b.generate('time', 'date'))\r\n1945-02-10T17:37:09Z\r\n```\r\n\r\n## Using the client with a database\r\n\r\nOne 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.\r\n\r\nDatabases currently supported:\r\n\r\n- **Oracle** (cx_Oracle library required)\r\n- **Postgres** (psycopg2 library required)\r\n- **Yugabyte** (psycopg2 library required)\r\n\r\nHere 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:\r\n\r\n```python\r\n>>> from binubuo import binubuoPostgres\r\n>>> bo = binubuoPostgres('394129D632B0A4E9913E491286EB428DD80CEFF0', 'binu', 'postgres', 'mypassword')\r\n>>> 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)\r\n```\r\n\r\nThat is how quickly you can create test data. For detailed documentation and reference commands, take a look at the [**docs online**](https://binubuo.com/ords/r/binubuo_ui/binubuo/binubuo-documentation)\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Client package for Binubuo synthetic data generator",
    "version": "0.2",
    "split_keywords": [
        "synthetic",
        "testdata",
        "mocking"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6243cc14ac71bbcf5fce720ef7652e04de740ad54bd9d6a23644d0d6a0859481",
                "md5": "1efd70813fe82a7289f5cb7406b029a3",
                "sha256": "cccd05bc0ff8c5095a531442162a0745f87e20e56348a90047b1436b5c19b52b"
            },
            "downloads": -1,
            "filename": "binubuo-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1efd70813fe82a7289f5cb7406b029a3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
            "size": 89696,
            "upload_time": "2023-01-30T09:38:49",
            "upload_time_iso_8601": "2023-01-30T09:38:49.204171Z",
            "url": "https://files.pythonhosted.org/packages/62/43/cc14ac71bbcf5fce720ef7652e04de740ad54bd9d6a23644d0d6a0859481/binubuo-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf23a201a8c3fce2726bb4c3fbaa5586ed6bca5605e81ea1e2aa566b42e2d2ce",
                "md5": "abca8958711975453f1f9443c8ec69cd",
                "sha256": "464c5d8b3c8c64d0a7d42603e7a498161755be380fc682fd3b3b0cbd02a0d50b"
            },
            "downloads": -1,
            "filename": "binubuo-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "abca8958711975453f1f9443c8ec69cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
            "size": 64526,
            "upload_time": "2023-01-30T09:38:51",
            "upload_time_iso_8601": "2023-01-30T09:38:51.751932Z",
            "url": "https://files.pythonhosted.org/packages/bf/23/a201a8c3fce2726bb4c3fbaa5586ed6bca5605e81ea1e2aa566b42e2d2ce/binubuo-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-30 09:38:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "binubuo"
}
        
Elapsed time: 0.04234s