معرفی شرکت ها


cryptoadvance.spectrum-0.6.4rc1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Implements A Bitcoin Core API which querying an Electrum
ویژگی مقدار
سیستم عامل -
نام فایل cryptoadvance.spectrum-0.6.4rc1
نام cryptoadvance.spectrum
نسخه کتابخانه 0.6.4rc1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Stepan Snigirev, k9ert
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/cryptoadvance.spectrum/
مجوز MIT License Copyright (c) 2023 specter.solutions Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Spectrum - Specter Desktop + Electrum This is a electrum-adapter. It exposes a Bitcoin-Core style API while using an electron API in the backend. It might be useful in specific usecases, e.g. having better performance when connecting to a electrum-server via Tor. In order to do that, it needs a Database. Quite easily you can use a kind of builtin SQLite. Depending on your usecase, you might want to use an external DB. ## Modes of usage This can be used either in standalone mode or as a specter-extension. The second option is probably the main use-case. ## Standalone Get this to work with something like that: ``` python3 --version # Make sure you have at least 3.8. Might also work with lower versions though virtualenv --python=python3 .env . ./.env/bin/activate pip3 install -e . # If you have a electrum server running on localhost: python3 -m cryptoadvance.spectrum server --config cryptoadvance.spectrum.config.NigiriLocalElectrumLiteConfig # If you want to run on mainnet and use emzy's Server python3 -m cryptoadvance.spectrum server --config cryptoadvance.spectrum.config.EmzyElectrumLiteConfig # Using Emzy's server but with a postgres export DB_USERNAME=bla export DB_PASSWORD=blub python3 -m cryptoadvance.spectrum server --config cryptoadvance.spectrum.config.EmzyElectrumPostgresConfig ``` Check the `config.py` for the env-vars which need to be exported in order to connect to something different than localhost. ## Specter Extension In order to get a development environment: ``` virtualenv --python=python3 .env . ./.env/bin/activate pip3 install -e . pip3 install cryptoadvance.specter python3 -m cryptoadvance.specter server --config DevelopmentConfig --debug ``` ## TODO: - refill keypool when address is used or new address is requested - flask `debug=True` flag creates two electrum sockets that notify twice - this causes duplications in the database - reconnect with electrum on disconnect - add support for credentials / cookie file for RPC calls ## Development Before your create a PR, make sure to [blackify](https://github.com/psf/black) all your changes. In order to automate that, there is a git [pre-commit hook](https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/) which you can simply install like this: ``` pre-commit install ```


نیازمندی

مقدار نام
>=0.6.1 embit
>=2.1.1 Flask
>=2.5.1 Flask-SQLAlchemy
>=1.4.42 sqlalchemy
- psycopg2-binary
>=2.26.0 requests
==1.7.1 pysocks
>=7.1.3 pytest
- pytest-cov[all]
- mock
- black
- pre-commit
- bdkpython


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl cryptoadvance.spectrum-0.6.4rc1:

    pip install cryptoadvance.spectrum-0.6.4rc1.whl


نصب پکیج tar.gz cryptoadvance.spectrum-0.6.4rc1:

    pip install cryptoadvance.spectrum-0.6.4rc1.tar.gz