Giter Club home page Giter Club logo

specterext-dummy's Introduction

This is a template repository for a minimal extension which should get you started if you want to contribute to specter via an extension. More information about Specter Extension Programming can be found here.

Get it to run

In oder to use this:

mkdir specterext-myextension && cd specterext-myextension
# Will work with version > 1.8.1 
# pip3 install virtualenv
# virtualenv --python=python3 .env
# source .env/bin/activate
# pip3 install cryptoadvance.specter
source ../specter-desktop/.env/bin/activate # assuming you have a specter-desktop checked out there
python3 -m cryptoadvance.specter ext gen
# Follow the instructions ...

How to get this to production?

The above setup is describing a Development Environment for your extension. If you ommit the --config DevelopmentConfig, it'll no longer work. We don't want in a ProductionConfig, that arbitrary files get imported by python. So in order to specify explicitely which extensions to load, there is a list in the ProductionConfig. So what you need to do is to first, switch the devstatus in your DummyService-class to production and then create your own relevant configuration and specify the extensions you want to load. You could do that e.g. by creating a file in ./src/mynym/specterext/dummy/app_config.py with this content: There is already an example in the folder when you generate the extension.

from cryptoadvance.specter.config import ProductionConfig


class Config(ProductionConfig):
    EXTENSION_LIST=[
        "dummy.service"
    ]

Then you'd start specter like this:

python3 -m cryptoadvance.specter server --config dummy.appconfig.Config

It's also possible, that you publish your extension on PyPi and use a fully qualified module-name in the EXTENSION_LIST. Obviously, you would need to install that in your (virtual-) environment in that case.

Get Help

If you want help or can't implement what you have in your mind or just want to say hello, join our Telegram-Chat.

https://t.me/+yS4VO2JqBHkzYTI6

If you want to

specterext-dummy's People

Contributors

k9ert avatar

Stargazers

 avatar  avatar

Watchers

Stepan Snigirev avatar

Forkers

kdmukai k9ert

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.