Go to advanced search

by SavinaRoja
Tue Apr 16, 2019 3:26 am
Forum: Python
Topic: Print a specific key, value for loop dictionary
Replies: 2
Views: 167

Re: Print a specific key, value for loop dictionary

If you want to print a few specific key-value pairs from a dict based on the key, you may consider this (it seems you were pretty close to this):

Code: Select all

options = Options.default_options
for key, value in options.items():
    if key in ['port', 'host']:
        print('{}: {}'.format(key, value))
by SavinaRoja
Tue Apr 16, 2019 3:19 am
Forum: Python
Topic: Websocket interfaces to devices using Arkady
Replies: 4
Views: 289

Re: Websocket interfaces to devices using Arkady

I've adapted the example above into the documentation. https://arkady.readthedocs.io/en/latest/intro.html
by SavinaRoja
Fri Apr 12, 2019 10:26 pm
Forum: Python
Topic: Websocket interfaces to devices using Arkady
Replies: 4
Views: 289

Re: Websocket interfaces to devices using Arkady

That's really neat. Interesting really how the concepts converge between the respective projects. At a broad level I think Arkady is less "focused" at the current stage than python-banyan; this is by design to an extent as I generalized the code that is now Arkady. The pub-sub model was something I ...
by SavinaRoja
Fri Apr 12, 2019 8:15 pm
Forum: Python
Topic: Websocket interfaces to devices using Arkady
Replies: 4
Views: 289

Websocket interfaces to devices using Arkady

Preamble: I recently worked on a project where I needed to control a variety of devices connected to a couple of Raspberry Pis. The devices ranged from Arduinos/Nanpy, DMX, sensors, and other applications including omxplayer and pygame audio. Because of the complexity of the project, I implemented ...
by SavinaRoja
Fri Apr 12, 2019 12:38 pm
Forum: General discussion
Topic: STICKY: Introduce yourself!
Replies: 3546
Views: 114727

Re: STICKY: Introduce yourself!

Hey there.

My name is Paul, though I also go by Pablo.

I've been coding for years, especially in Python, and am looking to share and learn new things.

Go to advanced search