conding


Nameconding JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/bonding-curves/conding
SummaryPython library for analysing and modelling bonding curves. This library is managed using nbdev with application development in python param panel.
upload_time2023-07-05 19:02:21
maintainer
docs_urlNone
authorShawn Anderson
requires_python>=3.7
licenseApache Software License 2.0
keywords nbdev jupyter notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # conding

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Usage

``` python
from conding.dune.tec import TECDashboard

tec = TECDashboard()

tec.market_information.holders_distribution()
```

    Unable to display output for mime type(s): application/javascript, application/vnd.holoviews_load.v0+json

    Unable to display output for mime type(s): application/javascript, application/vnd.holoviews_load.v0+json

<style>.bk-root, .bk-root .bk:before, .bk-root .bk:after {
  font-family: var(--jp-ui-font-size1);
  font-size: var(--jp-ui-font-size1);
  color: var(--jp-ui-font-color1);
}
</style>
<div>
<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }
&#10;    .dataframe tbody tr th {
        vertical-align: top;
    }
&#10;    .dataframe thead th {
        text-align: right;
    }
</style>

|     | rank_number | address                                            | balance      | perc         | cumulative_perc |
|-----|-------------|----------------------------------------------------|--------------|--------------|-----------------|
| 0   | 1           | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.500717e+05 | 8.264853e-02 | 0.082649        |
| 1   | 2           | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.060533e+05 | 5.840639e-02 | 0.141055        |
| 2   | 3           | \<a href="https://blockscout.com/xdai/mainnet/a... | 7.383866e+04 | 4.066494e-02 | 0.181720        |
| 3   | 4           | \<a href="https://blockscout.com/xdai/mainnet/a... | 6.933751e+04 | 3.818603e-02 | 0.219906        |
| 4   | 5           | \<a href="https://blockscout.com/xdai/mainnet/a... | 5.916598e+04 | 3.258430e-02 | 0.252490        |
| ... | ...         | ...                                                | ...          | ...          | ...             |
| 540 | 541         | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.024000e-15 | 5.639443e-22 | 1.000000        |
| 541 | 542         | \<a href="https://blockscout.com/xdai/mainnet/a... | 2.560000e-16 | 1.409861e-22 | 1.000000        |
| 542 | 543         | \<a href="https://blockscout.com/xdai/mainnet/a... | 8.000000e-17 | 4.405815e-23 | 1.000000        |
| 543 | 544         | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.600000e-17 | 8.811630e-24 | 1.000000        |
| 544 | 545         | \<a href="https://blockscout.com/xdai/mainnet/a... | 1.000000e-18 | 5.507269e-25 | 1.000000        |

<p>545 rows × 5 columns</p>
</div>

``` python
tec.abc_tributes.tribute_distribution()
```

<div>
<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }
&#10;    .dataframe tbody tr th {
        vertical-align: top;
    }
&#10;    .dataframe thead th {
        text-align: right;
    }
</style>

|     | date                 | action | sum(tribute) | tribute_total |
|-----|----------------------|--------|--------------|---------------|
| 0   | 2022-04-01T00:00:00Z | Sell   | 364.927505   | 96097.104858  |
| 1   | 2022-05-01T00:00:00Z | Buy    | 502.690920   | 96097.104858  |
| 2   | 2022-05-01T00:00:00Z | Sell   | 27525.756009 | 96097.104858  |
| 3   | 2022-06-01T00:00:00Z | Buy    | 18.424300    | 96097.104858  |
| 4   | 2022-06-01T00:00:00Z | Sell   | 9637.008165  | 96097.104858  |
| 5   | 2022-07-01T00:00:00Z | Buy    | 46.280000    | 96097.104858  |
| 6   | 2022-07-01T00:00:00Z | Sell   | 875.231330   | 96097.104858  |
| 7   | 2022-08-01T00:00:00Z | Buy    | 84.000440    | 96097.104858  |
| 8   | 2022-08-01T00:00:00Z | Sell   | 3578.698760  | 96097.104858  |
| 9   | 2022-09-01T00:00:00Z | Buy    | 440.034000   | 96097.104858  |
| 10  | 2022-09-01T00:00:00Z | Sell   | 6524.963118  | 96097.104858  |
| 11  | 2022-10-01T00:00:00Z | Buy    | 0.448273     | 96097.104858  |
| 12  | 2022-10-01T00:00:00Z | Sell   | 7265.726778  | 96097.104858  |
| 13  | 2022-11-01T00:00:00Z | Buy    | 42.080000    | 96097.104858  |
| 14  | 2022-11-01T00:00:00Z | Sell   | 7948.406669  | 96097.104858  |
| 15  | 2022-12-01T00:00:00Z | Buy    | 1.260000     | 96097.104858  |
| 16  | 2022-12-01T00:00:00Z | Sell   | 6767.473366  | 96097.104858  |
| 17  | 2023-01-01T00:00:00Z | Buy    | 0.310000     | 96097.104858  |
| 18  | 2023-01-01T00:00:00Z | Sell   | 3886.310413  | 96097.104858  |
| 19  | 2023-02-01T00:00:00Z | Buy    | 0.100000     | 96097.104858  |
| 20  | 2023-02-01T00:00:00Z | Sell   | 4413.471438  | 96097.104858  |
| 21  | 2023-03-01T00:00:00Z | Buy    | 3.100000     | 96097.104858  |
| 22  | 2023-03-01T00:00:00Z | Sell   | 13877.419531 | 96097.104858  |
| 23  | 2023-04-01T00:00:00Z | Buy    | 460.600000   | 96097.104858  |
| 24  | 2023-04-01T00:00:00Z | Sell   | 1832.383842  | 96097.104858  |

</div>

## Installation

### Installing as a Package

pip install:

``` sh
pip install conding
```

Export your Dune API Key as an environment variable.

``` sh
export DUNE_API_KEY='<Your Key>'
```

### Local Development

Clone the repository

``` sh
git clone git@github.com:bonding-curves/conding.git
cd conding
```

Add your Dune API Key to the .env file.

``` sh
mv .env.template .env
vi .env
```

Install the requirements with poetry. For instructions on installing
poetry see: https://python-poetry.org/docs/

``` sh
poetry install --with dev
poetry shell
```

### Using NBDev

When first running the package, install git hooks and quarto

``` sh
nbdev_install_hooks
nbdev_install_quarto
```

Run tests with nbdev

``` sh
nbdev_test
```

View documentation locally

``` sh
nbdev_preview
```

Export changes made to notebooks

``` sh
nbdev_export
```

Build Documentation

``` sh
nbdev_docs
```

See more options

``` sh
nbdev_help
```

See https://nbdev.fast.ai/ for more information on Nbdev.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bonding-curves/conding",
    "name": "conding",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "nbdev jupyter notebook python",
    "author": "Shawn Anderson",
    "author_email": "shawn@longtailfinancial.com",
    "download_url": "https://files.pythonhosted.org/packages/df/6f/bb1af58e69404671d2ce451be9ca159c9bf32a52afdeb8cd020e3a17eb68/conding-0.1.3.tar.gz",
    "platform": null,
    "description": "# conding\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n## Usage\n\n``` python\nfrom conding.dune.tec import TECDashboard\n\ntec = TECDashboard()\n\ntec.market_information.holders_distribution()\n```\n\n    Unable to display output for mime type(s): application/javascript, application/vnd.holoviews_load.v0+json\n\n    Unable to display output for mime type(s): application/javascript, application/vnd.holoviews_load.v0+json\n\n<style>.bk-root, .bk-root .bk:before, .bk-root .bk:after {\n  font-family: var(--jp-ui-font-size1);\n  font-size: var(--jp-ui-font-size1);\n  color: var(--jp-ui-font-color1);\n}\n</style>\n<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n&#10;    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n&#10;    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n\n|     | rank_number | address                                            | balance      | perc         | cumulative_perc |\n|-----|-------------|----------------------------------------------------|--------------|--------------|-----------------|\n| 0   | 1           | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 1.500717e+05 | 8.264853e-02 | 0.082649        |\n| 1   | 2           | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 1.060533e+05 | 5.840639e-02 | 0.141055        |\n| 2   | 3           | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 7.383866e+04 | 4.066494e-02 | 0.181720        |\n| 3   | 4           | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 6.933751e+04 | 3.818603e-02 | 0.219906        |\n| 4   | 5           | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 5.916598e+04 | 3.258430e-02 | 0.252490        |\n| ... | ...         | ...                                                | ...          | ...          | ...             |\n| 540 | 541         | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 1.024000e-15 | 5.639443e-22 | 1.000000        |\n| 541 | 542         | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 2.560000e-16 | 1.409861e-22 | 1.000000        |\n| 542 | 543         | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 8.000000e-17 | 4.405815e-23 | 1.000000        |\n| 543 | 544         | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 1.600000e-17 | 8.811630e-24 | 1.000000        |\n| 544 | 545         | \\<a href=\"https://blockscout.com/xdai/mainnet/a... | 1.000000e-18 | 5.507269e-25 | 1.000000        |\n\n<p>545 rows \u00d7 5 columns</p>\n</div>\n\n``` python\ntec.abc_tributes.tribute_distribution()\n```\n\n<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n&#10;    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n&#10;    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n\n|     | date                 | action | sum(tribute) | tribute_total |\n|-----|----------------------|--------|--------------|---------------|\n| 0   | 2022-04-01T00:00:00Z | Sell   | 364.927505   | 96097.104858  |\n| 1   | 2022-05-01T00:00:00Z | Buy    | 502.690920   | 96097.104858  |\n| 2   | 2022-05-01T00:00:00Z | Sell   | 27525.756009 | 96097.104858  |\n| 3   | 2022-06-01T00:00:00Z | Buy    | 18.424300    | 96097.104858  |\n| 4   | 2022-06-01T00:00:00Z | Sell   | 9637.008165  | 96097.104858  |\n| 5   | 2022-07-01T00:00:00Z | Buy    | 46.280000    | 96097.104858  |\n| 6   | 2022-07-01T00:00:00Z | Sell   | 875.231330   | 96097.104858  |\n| 7   | 2022-08-01T00:00:00Z | Buy    | 84.000440    | 96097.104858  |\n| 8   | 2022-08-01T00:00:00Z | Sell   | 3578.698760  | 96097.104858  |\n| 9   | 2022-09-01T00:00:00Z | Buy    | 440.034000   | 96097.104858  |\n| 10  | 2022-09-01T00:00:00Z | Sell   | 6524.963118  | 96097.104858  |\n| 11  | 2022-10-01T00:00:00Z | Buy    | 0.448273     | 96097.104858  |\n| 12  | 2022-10-01T00:00:00Z | Sell   | 7265.726778  | 96097.104858  |\n| 13  | 2022-11-01T00:00:00Z | Buy    | 42.080000    | 96097.104858  |\n| 14  | 2022-11-01T00:00:00Z | Sell   | 7948.406669  | 96097.104858  |\n| 15  | 2022-12-01T00:00:00Z | Buy    | 1.260000     | 96097.104858  |\n| 16  | 2022-12-01T00:00:00Z | Sell   | 6767.473366  | 96097.104858  |\n| 17  | 2023-01-01T00:00:00Z | Buy    | 0.310000     | 96097.104858  |\n| 18  | 2023-01-01T00:00:00Z | Sell   | 3886.310413  | 96097.104858  |\n| 19  | 2023-02-01T00:00:00Z | Buy    | 0.100000     | 96097.104858  |\n| 20  | 2023-02-01T00:00:00Z | Sell   | 4413.471438  | 96097.104858  |\n| 21  | 2023-03-01T00:00:00Z | Buy    | 3.100000     | 96097.104858  |\n| 22  | 2023-03-01T00:00:00Z | Sell   | 13877.419531 | 96097.104858  |\n| 23  | 2023-04-01T00:00:00Z | Buy    | 460.600000   | 96097.104858  |\n| 24  | 2023-04-01T00:00:00Z | Sell   | 1832.383842  | 96097.104858  |\n\n</div>\n\n## Installation\n\n### Installing as a Package\n\npip install:\n\n``` sh\npip install conding\n```\n\nExport your Dune API Key as an environment variable.\n\n``` sh\nexport DUNE_API_KEY='<Your Key>'\n```\n\n### Local Development\n\nClone the repository\n\n``` sh\ngit clone git@github.com:bonding-curves/conding.git\ncd conding\n```\n\nAdd your Dune API Key to the .env file.\n\n``` sh\nmv .env.template .env\nvi .env\n```\n\nInstall the requirements with poetry. For instructions on installing\npoetry see: https://python-poetry.org/docs/\n\n``` sh\npoetry install --with dev\npoetry shell\n```\n\n### Using NBDev\n\nWhen first running the package, install git hooks and quarto\n\n``` sh\nnbdev_install_hooks\nnbdev_install_quarto\n```\n\nRun tests with nbdev\n\n``` sh\nnbdev_test\n```\n\nView documentation locally\n\n``` sh\nnbdev_preview\n```\n\nExport changes made to notebooks\n\n``` sh\nnbdev_export\n```\n\nBuild Documentation\n\n``` sh\nnbdev_docs\n```\n\nSee more options\n\n``` sh\nnbdev_help\n```\n\nSee https://nbdev.fast.ai/ for more information on Nbdev.\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Python library for analysing and modelling bonding curves. This library is managed using nbdev with application development in python param panel.",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/bonding-curves/conding"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "405958d231e3330d232f971ca865be0064b7683d6ecb86c1a466cc9596027aff",
                "md5": "912f3b2bb6162c46b8fd63730e9cdefb",
                "sha256": "3d0db0f661a73f4161da065a7b9e476ea537ac782cd3e7ee5181076e10b81903"
            },
            "downloads": -1,
            "filename": "conding-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "912f3b2bb6162c46b8fd63730e9cdefb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17842,
            "upload_time": "2023-07-05T19:02:18",
            "upload_time_iso_8601": "2023-07-05T19:02:18.821035Z",
            "url": "https://files.pythonhosted.org/packages/40/59/58d231e3330d232f971ca865be0064b7683d6ecb86c1a466cc9596027aff/conding-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df6fbb1af58e69404671d2ce451be9ca159c9bf32a52afdeb8cd020e3a17eb68",
                "md5": "9de31fd6063e320fd8494ff006ce0840",
                "sha256": "3bce8a66d57708cac87e64dd67bb0d22713111b4e5ea9e5155b477bb73bcd974"
            },
            "downloads": -1,
            "filename": "conding-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9de31fd6063e320fd8494ff006ce0840",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 18206,
            "upload_time": "2023-07-05T19:02:21",
            "upload_time_iso_8601": "2023-07-05T19:02:21.023296Z",
            "url": "https://files.pythonhosted.org/packages/df/6f/bb1af58e69404671d2ce451be9ca159c9bf32a52afdeb8cd020e3a17eb68/conding-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-05 19:02:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bonding-curves",
    "github_project": "conding",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "conding"
}
        
Elapsed time: 0.08038s