#python

Обеспечена возможность запуска MicroPython в web-браузере - http://mobile.opennet.ru//opennews/art.shtml?num=46614

#python #python3 #micropython #IoT #embedded #virtualisation #qemu

Sergey Zhemoitel
7 hours ago

PyCon 2017 videos #python https://www.youtube.com/channel/UCrJhliKNQ8g0qoE_zvL8eVg/

PyCon 2017
PyCon 2017 Conference tutorials and talks (https://us.pycon.org/2017/).

Renato Candido
2 days ago

Python vs. C/C++ in embedded systems... The C/C++ programming languages dominate embedded systems programming, though they have a number of disadvantages. Python, on the other hand, has many strengths that make it a great language for embedded systems. Let's look at the pros and cons of each, and why you should consider Python for embedded programming.

#PYTHON #C #C++ #EMBEDDED https://opensource.com/life/16/8/python-vs-cc-embedded-systems?sc_cid=70160000000xYJYAA2

Python vs. C/C++ in embedded systems
The pros and cons of each, and why you should consider Python for embedded programming.

Dhan Hurley
2 days ago

Hey everyone, I’m #newhere. I’m interested in #bicycling, #bicycle-commuting, and #veganism. As well as #python, and other fun stuff.

Liam O'Neill Gordon
3 days ago

#Python API Checklist

http://python.apichecklist.com/

Jason Robinson
4 days ago

Create, Traverse, Slice, Insert, Append, Sort, Reverse, Delete, Aggregate, Compare, Join and Alias Lists using Python List Functions #opensource #code, #coding, #dev, #development #programming #scripting #python https://likegeeks.com/python-list-functions

Python List Functions - The Definitive Guide - Like Geeks
Create, Append, Insert, Traverse, Slice, Sort, Reverse Delete, Compare, Join, index, and Aggregate Python Lists using Python List Functions With Examples.

seco@joindiaspora.com
4 days ago

Python Programming Basics with Examples Manipulating Strings Manipulating Numbers Manipulating Dates and Times Dealing with File System Networking and Connectivity Threading in Python Using Raspberry PI #opensource #code, #coding, #dev, #development #programming #scripting #python #Raspberry #Networking #Threading https://likegeeks.com/python-programming-basics/

Python Programming Basics with Examples - Like Geeks
Learn Python Programming basics, Manipulating Strings, Numbers, Dates and Times, Dealing with File System, Networking, Threading, Using Raspberry PI

seco@joindiaspora.com
4 days ago

"I’m not going around trashing Python either" http://rhea-ayase.eu/articles/2017-05/FLOSS-Community Not the point. #python isn't from company of crooks, criminals&liars

Dr. Roy Schestowitz (罗伊)
5 days ago

federation v0.12.0 released

#Python #federation now includes more support for the upcoming #diaspora protocol breaking changes and also includes support for the new Contact entity type. Additionally, legacy sharing/following Request entity has fixes.

Repository: https://github.com/jaywink/federation

Changelog:

Backwards incompatible changes

  • Removed exception class NoHeaderInMessageError. New style Diaspora protocol does not have a custom header in the Salmon magic envelope and thus there is no need to raise this anywhere.

Added

  • New style Diaspora public payloads are now supported (see here). Old style payloads are still supported. Payloads are also still sent out old style.
  • Add new Follow base entity and support for the new Diaspora "contact" payload. The simple Follow maps to Diaspora contact entity with following/sharing both true or false. Sharing as a separate concept is not currently supported.
  • Added _receiving_guid to all entities. This is filled with user.guid if user is passed to federation.inbound.handle_receive and it has a guid. Normally in for example Diaspora, this will always be done in private payloads.

Fixed

  • Legacy Diaspora retraction of sharing/following is now supported correctly. The end result is a DiasporaRetraction for entity type Profile. Since the payload doesn't contain the receiving user for a sharing/following retraction in legacy Diaspora protocol, we store the guid of the user in the entity as _receiving_guid, assuming it was passed in for processing.

jaywink/federation
Python library for abstracting social federation protocols

Jason Robinson
6 days ago
1

There is a prejudice among many that GNU Emacs is a very difficult tool to get used to. This blog will surely help those who work on Python to start using Emacs with minimum efforts.

https://digitallyfreeblog.wordpress.com/

#gnu #emacs #texteditor #python #freesoftware

digitallyfreeblog

Abhijith Balan
7 days ago

How To Use Logging in Python 3

https://www.digitalocean.com/community/tutorials/how-to-use-logging-in-python-3

#python #logging

Edwin Caldon
9 days ago

How To Port Python 2 Code to Python 3

https://www.digitalocean.com/community/tutorials/how-to-port-python-2-code-to-python-3

#python

Edwin Caldon
9 days ago

J’ai lancé une MR sur #feed2toot pour intégrer automatiquement le flux #RSS de #Diaspora* sur #Mastodon. Ça fonctionne mais n’étant pas un pro avec #Python, toute aide est la bienvenue pour les finitions : https://gitlab.com/chaica/feed2toot/merge_requests/4 cc @{Carl Chenet ; carlchenet@framasphere.org}

WIP: Converting HTML to text with the BeautifulSoup lib (!4) · Merge Requests · Carl Chenet / feed2toot
Hi there, I'm trying to use feed2toot with my Diaspora*'s feed that contains HTML. I'm not so handy with Python so let me know what can I do to make...

Simon Alberny
12 days ago

J'ai lancé une MR pour intégrer automatiquement le flux #RSS de #Diaspora* sur #Mastodon. Ça fonctionne mais n'étant pas un pro avec #Python, toute aide est la bienvenue pour l'intégrer complètement : https://gitlab.com/chaica/feed2toot/merge_requests/4

WIP: Converting HTML to text with the BeautifulSoup lib (!4) · Merge Requests · Carl Chenet / feed2toot
Hi there, I'm trying to use feed2toot with my Diaspora*'s feed that contains HTML. I'm not so handy with Python so let me know what can I do to make...

Simon Alberny
12 days ago

git checkout -b activitypub

Time to start taking #Python #federation to multi-protocol stage, as it was planned to be from the start ;) Might take a while but got to start some day!

#activitypub

Jason Robinson
16 days ago
1

Bonjour tout le monde, je suis #nouveauici. Mes centres d'intérêt sont #histoire, #irc, #linux, #net, #python, #sciencefiction et #sciencetechnology.

TheBeHolDer
18 days ago

2D Fourier Quantum Walk on a Rectangular Lattice

#physics #simulation #python #pylab #mywork #quantum #quantum-walk #fourier

bobo
18 days ago

2D Hadamard Quantum Walk on a rectangular lattice

#physics #simulation #python #pylab #mywork #quantum #quantum-walk #hadamard

bobo
18 days ago

2D Grover Quantum Walk on a rectangular lattice

#physics #simulation #python #pylab #mywork #quantum #quantum-walk #grover

bobo
18 days ago

4 Python libraries for building great command-line user interfaces https://opensource.com/article/17/5/4-practical-python-libraries #programming #python

4 Python libraries for building great command-line user interfaces
In the second installment of a two-part series on terminal applications with great command-line UIs, we explore Prompt Toolkit, Click, Pygments, and Fuzzy Finder.

Dr. Roy Schestowitz (罗伊)
19 days ago

Python for JavaScript Developers

So recently I began working at a little startup in New York City by the name of Underdog.io, where I discovered that they had a back-end written primarily in Python, a language that I had very little previous exposure to.

While I was hired primarily for my experience with JavaScript and React, the small size of our team means that I frequently have to delve into all parts of the codebase in order to ship a feature. So I had to get well acquainted with Python, very fast.

Unfortunately, I had a hard time finding good resources for learning Python that weren't targeted to people who haven't programmed before. I already knew how to program and am familiar with other languages, I just needed to learn the syntax and paradigms of this one specific programming language, Python.

That's where this blog post comes in. To serve as a quick guide for JavaScript developers who want to get up to speed quickly with Python, but without having to learn what declaring a variable means or what a function is.

#programming #python #javascript

lu*
19 days ago

federation 0.11.0 released

Federation is a #Python library for abstracting #federated #social network protocols through one API. Currently #Diaspora is supported for status messages, comments and likes + all the signing and discovery related parts. Plan is to start working on #ActivityPub support in the next few months.

If you would like to participate or want to talk about the library, pop into IRC FreeNode #python-federation or join the Gitter chatroom.

Release on GitHub.

Release notes

Backwards incompatible changes

Diaspora protocol support added for comment and like relayable types. On inbound payloads the signature included in the payload will be verified against the sender public key. A failed verification will raise SignatureVerificationError. For outbound entities, the author private key will be used to add a signature to the payload.

This introduces some backwards incompatible changes to the way entities are processed. Diaspora entity mappers get_outbound_entity and entity utilities get_full_xml_representation now requires the author private_key as a parameter. This is required to sign outgoing Comment and Reaction (like) entities.

Additionally, Diaspora entity mappers message_to_objects and element_to_objects now take an optional sender_key_fetcher parameter. This must be a function that when called with the sender handle will return the sender public key. This allows using locally cached public keys instead of fetching them as needed. NOTE! If the function is not given, each processed payload will fetch the public key over the network.

A failed payload signature verification now raises a SignatureVerificationError instead of a less specific AssertionError.

Added

  • Three new attributes added to entities.
    • Add protocol name to all entities to attribute _source_protocol. This might be useful for applications to know which protocol payload the entity was created from once multiple protocols are implemented.
    • Add source payload object to the entity at _source_object when processing it.
    • Add sender public key to the entity at _sender_key, but only if it was used for validating signatures.
  • Add support for the new Diaspora payload properties coming in the next protocol version. Old XML payloads are and will be still supported.
  • DiasporaComment and DiasporaLike will get the order of elements in the XML payload as a list in xml_tags. For implementers who want to recreate payloads for these relayables, this list should be saved for later use.
  • High level federation.outbound.handle_send helper function now allows sending entities to a list of recipients without having to deal with payload creation or caring about the protocol (in preparation of being a multi-protocol library).
    • The function takes three parameters, entity that will be sent, from_user that is sending (note, not necessarely authoring, this user will be used to sign the payload for Diaspora for example) and a list of recipients as tuples of recipient handle/domain and optionally protocol. In the future, if protocol is not given, it will be guessed from the recipient handle, and if necessary a network lookup will be made to see what protocols the receiving identity supports.
    • Payloads will be delivered to each receiver only once. Currently only public messages are supported through this helper, so multiple recipients on a single domain will cause only one delivery.

Changed

  • Refactor processing of Diaspora payload XML into entities. Diaspora protocol is dropping the <XML><post></post></XML> wrapper for the payloads. Payloads with the wrapper will still be parsed as before.
Jason Robinson
6 days ago (edited)

Leviathan Framework, desencadenando a la bestia

img89

Muchos de nosotros hemos auditado servidores de todos los colores, de todo tipo de sistemas operativos, de todo tipo de características, con diferentes puertos abiertos, con diferentes aplicaciones ejecutándose en cada puerto...

Vía hackplayers.com

#leviathan #framework #security #seguridad #python

Edwin Caldon
21 days ago

heise-Angebot: Administrator-Workshop: Python für Linux
<https: www.heise.de="" newsticker="" meldung="" administrator-workshop-python-fuer-linux-3703930.html="">
#LinuxundOpenSource #Python #Systemverwaltung

heise online (inoffiziell)
24 days ago