crypto-pair


Namecrypto-pair JSON
Version 2.3.11 PyPI version JSON
download
home_pagehttps://github.com/soulmachine/crypto-pair-py
SummaryNormalize cryptocurrency trading pairs
upload_time2023-03-18 23:02:08
maintainer
docs_urlNone
authorsoulmachine
requires_python>=3.6
license
keywords blockchain cryptocurrency trading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # crypto-pair

Python bindings for the [crypto-pair](https://github.com/soulmachine/crypto-crawler-rs/tree/main/crypto-pair) library.

## Quickstart

Install,

```bash
pip3 install crypto-pair
```

```python
from crypto_pair import normalize_pair

assert normalize_pair('BTCUSDT', 'binance') == 'BTC/USDT'
```

## How to build

On Mac OS X,

```bash
conda install --file requirements-dev.txt

rm -rf build crypto-pair-ffi/target
python3 setup.py bdist_wheel

# Need to create a ~/.pypirc file first
twine upload --repository testpypi dist/*
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps crypto-pair

twine upload dist/*
```

For Linux,

```bash
docker run -it --rm -v $(pwd):/project soulmachine/rust:manylinux2014 bash

/opt/python/cp36-cp36m/bin/pip3 install -r requirements-dev.txt
rm -rf build crypto-pair-ffi/target
/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel
auditwheel repair dist/*linux*.whl --plat manylinux2014_x86_64
/opt/python/cp36-cp36m/bin/twine upload --repository testpypi wheelhouse/*
```

## Test

```bash
python3 setup.py develop
pytest -s
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/soulmachine/crypto-pair-py",
    "name": "crypto-pair",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "blockchain,cryptocurrency,trading",
    "author": "soulmachine",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# crypto-pair\n\nPython bindings for the [crypto-pair](https://github.com/soulmachine/crypto-crawler-rs/tree/main/crypto-pair) library.\n\n## Quickstart\n\nInstall,\n\n```bash\npip3 install crypto-pair\n```\n\n```python\nfrom crypto_pair import normalize_pair\n\nassert normalize_pair('BTCUSDT', 'binance') == 'BTC/USDT'\n```\n\n## How to build\n\nOn Mac OS X,\n\n```bash\nconda install --file requirements-dev.txt\n\nrm -rf build crypto-pair-ffi/target\npython3 setup.py bdist_wheel\n\n# Need to create a ~/.pypirc file first\ntwine upload --repository testpypi dist/*\npython3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps crypto-pair\n\ntwine upload dist/*\n```\n\nFor Linux,\n\n```bash\ndocker run -it --rm -v $(pwd):/project soulmachine/rust:manylinux2014 bash\n\n/opt/python/cp36-cp36m/bin/pip3 install -r requirements-dev.txt\nrm -rf build crypto-pair-ffi/target\n/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel\nauditwheel repair dist/*linux*.whl --plat manylinux2014_x86_64\n/opt/python/cp36-cp36m/bin/twine upload --repository testpypi wheelhouse/*\n```\n\n## Test\n\n```bash\npython3 setup.py develop\npytest -s\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Normalize cryptocurrency trading pairs",
    "version": "2.3.11",
    "split_keywords": [
        "blockchain",
        "cryptocurrency",
        "trading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b2d55b17051c3b49b21ecb5a8419c1f37823149e6044fdb0c0c9bfd4cd64a54f",
                "md5": "ebc02799434f7f2a90ebbe6ed4ed8e5e",
                "sha256": "21af673fd4eaefe8c289ba3079f20afc4c239bc093a5b856e4746b54c4db3f6f"
            },
            "downloads": -1,
            "filename": "crypto_pair-2.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ebc02799434f7f2a90ebbe6ed4ed8e5e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3885368,
            "upload_time": "2023-03-18T23:02:08",
            "upload_time_iso_8601": "2023-03-18T23:02:08.895069Z",
            "url": "https://files.pythonhosted.org/packages/b2/d5/5b17051c3b49b21ecb5a8419c1f37823149e6044fdb0c0c9bfd4cd64a54f/crypto_pair-2.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-18 23:02:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "soulmachine",
    "github_project": "crypto-pair-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "crypto-pair"
}
        
Elapsed time: 0.06602s