Le moment tech de Septembre 2020
Dans le cadre de leur veille, les développeurs d'Anybox mettent en lumière les bibliothèques et autres outils python, mais pas que.
bullet, Beautiful Python Prompts Made Simple. Customize prompts in your Python CLI tool. Extensive support for formatting, colors, background colors, styling, and etc. Also supports emojis! #python
f{"value="}, Python 3.8 added an = specifier to f-strings. An f-string such as f'{expr=}' will expand to the text of the expression, an equal sign, then the representation of the evaluated expression. #python
Docker, «Over 15 PB of container images are stored on Docker Hub today»; changement des conditions d'utilisations du hub docker à venir en 2 parties:
- https://www.docker.com/blog/scaling-dockers-business-to-serve-millions-more-developers-storage
- https://www.docker.com/blog/scaling-docker-to-serve-millions-more-developers-network-egress/
gitpod , Gitpod is an open-source Kubernetes application providing fully-baked, collaborative development environments in your browser - powered by VS Code. Tightly integrated with GitLab, GitHub, and Bitbucket, Gitpod automatically and continuously prebuilds dev environments for all your branches. As a result, team members can instantly start coding with fresh, ephemeral and fully-compiled dev environments - no matter if you are building a new feature, want to fix a bug or do a code review. #ide, #k8s
isort a enfin un mode de compatibilité avec black : isort --profile black
cf. Built-in Profile for isort #linting
À la découverte de Mercure, Mise en place de Mercure, un sérieux concurrent aux classiques WebSockets et autres solutions similaires qui tire parti de nombreuses nouveautés du Web (HTTP/2, SSE, …) et présentations de ses principes. #push #sse
I have been Powned, , Retour d'expérience d'un piratage via Pypi. #python
ts-migrate, ts-migrate is a tool for helping migrate code to TypeScript. It takes a JavaScript, or a partial TypeScript, project in and gives a compiling TypeScript project out. ts-migrate is intended to accelerate the TypeScript migration process. The resulting code will pass the build, but a followup is required to improve type safety. There will be lots of // @ts-expect-error
, and any that will need to be fixed over time. In general, it is a lot nicer than starting from scratch. #javascript #typescript
present, A terminal-based presentation tool with colors and effects. #python
Django jazzmin, Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzy #django
Handling exceptions in Python a cleaner way, using Decorators
Django Ninja, Django Ninja is a web framework for building APIs with Django and Python 3.6+ based type hints. Key features :
Easy: Designed to be easy to use and intuitive.
Fast: Very high performance thanks to Pydantic and async support.
Fast to code: Type hints and automatic docs let's you focus only on business logic.
Standards-based: Based on the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.
There is a secret that needs to be understood in order to write good software documentation: there isn’t one thing called documentation, there are four.
They are: tutorials, how-to guides, technical reference and explanation. They represent four different purposes or functions, and require four different approaches to their creation. Understanding the implications of this will help improve most documentation - often immensely.
Writing tests with Hypothesis frees you from the tedium of deciding on and writing out specific inputs to test. Now, the hypothesis.extra.ghostwriter module can write your test functions for you too!
The idea is to provide an easy way to start property-based testing, and a seamless transition to more complex test code - because ghostwritten tests are source code that you could have written for yourself.
So just pick a function you’d like tested, and feed it to one of the functions below or our command-line interface hypothesis write -h! They follow imports, use but do not require type annotations, and generally do their best to write you a useful test.
In 2003, Dave Shea began a legendary project called CSS Zen Garden that provided a demonstration of "what can be accomplished through CSS-based design" until submissions stopped in 2013.
Style Stage seeks to rekindle that spirit by providing this page as the base HTML for contributors - like you! - to re-style by submitting an alternate stylesheet.
Openbase, Openbase is a community for developers to discover and rate open-source packages. #javascript
The JavaScript Promise Tutorial, This post is intended to be the ultimate JavaScript Promises tutorial: recipes and examples for everyday situations (or that’s the goal ). We cover all the necessary methods like then
, catch
, and finally
. Also, we go over more complex situations like executing promises in parallel with Promise.all
, timing out APIs with Promise.race
, promise chaining and some best practices and gotchas. #javascript
http://www.sheshbabu.com/posts/rust-wasm-yew-single-page-application/, développement d'une Single Page Application en Rust #rust
errbot, Errbot is a chatbot. It allows you to start scripts interactively from your chatrooms for any reason: random humour, chatops, starting a build, monitoring commits, triggering alerts... It is written and easily extensible in Python. #chatbot #python
Rust for a Pythonista #1: Why and when? une série d'articles sur le Rust pour des dév Python #rust