Testing Python Applications with Pytest.
Pytest is a testing framework and test runner for Python. In this guide we will have a look at the most useful and common configuration and usage, including several pytest plugins and external libraries. Although Python comes with a unittest module in the standard library and there are other Python test frameworks like nose2 or Ward, pytest remains my favourite. The beauty of using simple functions instead of class hierarchies, one simple
#guide #testing #python #pytest
Pytest is a testing framework and test runner for Python. In this guide we will have a look at the most useful and common configuration and usage, including several pytest plugins and external libraries. Although Python comes with a unittest module in the standard library and there are other Python test frameworks like nose2 or Ward, pytest remains my favourite. The beauty of using simple functions instead of class hierarchies, one simple
assert instead of many different assert functions, built-in parametrized testing, a nice system of fixtures and the number of available plugins makes it a pleasure to use.#guide #testing #python #pytest
❤1👍1👏1
Terser is a JavaScript parser and mangler/compressor toolkit for ES6+.
#javascript #js #es6 #minimizer
#javascript #js #es6 #minimizer
👍1🔥1👏1
mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration.
Using certificates from real certificate authorities (CAs) for development can be dangerous or impossible (for hosts like example.test, localhost or 127.0.0.1), but self-signed certificates cause trust errors. Managing your own CA is the best solution, but usually involves arcane commands, specialized knowledge and manual steps.
#golang #go #certificates
Using certificates from real certificate authorities (CAs) for development can be dangerous or impossible (for hosts like example.test, localhost or 127.0.0.1), but self-signed certificates cause trust errors. Managing your own CA is the best solution, but usually involves arcane commands, specialized knowledge and manual steps.
mkcert automatically creates and installs a local CA in the system root store, and generates locally-trusted certificates. mkcert does not automatically configure servers to use the certificates, though, that's up to you.#golang #go #certificates
❤1👍1🔥1
Streaming video with FastAPI.
We will briefly discuss various options of streaming video over the internet and see a simple streaming video example using FastAPI that will show the video in the browser using the HTML5 video tag.
#video #python #fastapi #streaming
We will briefly discuss various options of streaming video over the internet and see a simple streaming video example using FastAPI that will show the video in the browser using the HTML5 video tag.
#video #python #fastapi #streaming
❤1👍1🔥1
nocodb - is an open source no-code platform that turns any database into a smart spreadsheet.
#javascript #js #oss #airtable
#javascript #js #oss #airtable
❤1👍1🔥1
You have to know about persistent data structures.
In this article author talking about persistent data structures and how they work.
#article #clojure #persistent #data #structures
In this article author talking about persistent data structures and how they work.
#article #clojure #persistent #data #structures
❤1👍1🔥1
If you always wanted to contribute to an open-source project then here is a good opportunity for you. Currently, I'm working on Mimesis 5.0.0 and I'm planning to fix all the issues which were reported.
You can pick any issue you like and create PR:
https://github.com/lk-geimfari/mimesis/issues
You can read more about Mimesis here: https://mimesis.name
#python #github #opensource
You can pick any issue you like and create PR:
https://github.com/lk-geimfari/mimesis/issues
You can read more about Mimesis here: https://mimesis.name
#python #github #opensource
❤1👍1🔥1
Renovate is a universal dependency update tool that fits into your workflows.
#typescript #ts #npm #dependencies
#typescript #ts #npm #dependencies
❤1👍1🔥1
Rich is a Python library for rich text and beautiful formatting in the terminal.
The Rich API makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box.
#python #terminal #ansi #color #syntax #highlighting
The Rich API makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box.
#python #terminal #ansi #color #syntax #highlighting
❤1🔥1👏1
Textual is a TUI (Text User Interface) framework for Python using Rich as a renderer.
The end goal is to be able to rapidly create rich terminal applications that look as good as possible (within the restrictions imposed by a terminal emulator).
Rich TUI will integrate tightly with its parent project, Rich. Any of the existing renderables can be used in a more dynamic application.
#python #rich #tui #ui #framework
The end goal is to be able to rapidly create rich terminal applications that look as good as possible (within the restrictions imposed by a terminal emulator).
Rich TUI will integrate tightly with its parent project, Rich. Any of the existing renderables can be used in a more dynamic application.
#python #rich #tui #ui #framework
❤1👍1🔥1
Hasura GraphQL Engine is a blazing-fast GraphQL server that gives you instant, realtime GraphQL APIs over Postgres, with webhook triggers on database events, and remote schemas for business logic.
Hasura helps you build GraphQL apps backed by Postgres or incrementally move to GraphQL for existing applications using Postgres.
#haskell #graphql #instant #graphql #engine
Hasura helps you build GraphQL apps backed by Postgres or incrementally move to GraphQL for existing applications using Postgres.
#haskell #graphql #instant #graphql #engine
❤1👍1🔥1
Tongue is a do-it-yourself i18n library for Clojure and ClojureScript.
Tongue is very simple yet capable:
- Dictionaries are just Clojure maps.
- Translations are either strings, template strings or arbitrary functions.
- No additional build steps, no runtime resource loading.
- It comes with no built-in knowledge of world locales. It has all the tooling for you to define locales yourself though.
- Pure Clojure implementation, no dependencies.
- Can be used from both Clojure and ClojureScript.
In contrast with other i18n solutions relying on complex and limiting string-based syntax for defining pluralization, wording, special cases etc, Tongue lets you use arbitrary functions. It gives you convenience, code reuse and endless possibilities.
#clojure #clojurescript #i18n #jvm
Tongue is very simple yet capable:
- Dictionaries are just Clojure maps.
- Translations are either strings, template strings or arbitrary functions.
- No additional build steps, no runtime resource loading.
- It comes with no built-in knowledge of world locales. It has all the tooling for you to define locales yourself though.
- Pure Clojure implementation, no dependencies.
- Can be used from both Clojure and ClojureScript.
In contrast with other i18n solutions relying on complex and limiting string-based syntax for defining pluralization, wording, special cases etc, Tongue lets you use arbitrary functions. It gives you convenience, code reuse and endless possibilities.
#clojure #clojurescript #i18n #jvm
👍1🔥1👏1
QGIS is a full-featured, user-friendly, free-and-open-source (FOSS) geographical information system (GIS) that runs on Unix platforms, Windows, and MacOS.
#cpp #geographical #information #system #gis
#cpp #geographical #information #system #gis
❤1👍1🔥1
Hammerspoon is a desktop automation tool for OS X. It bridges various system level APIs into a Lua scripting engine, allowing you to have powerful effects on your system by writing Lua scripts.
What can it do for me?
You can write Lua code that interacts with OS X APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard/mouse events, clipboards, location services, wifi, and more.
If you want to explore the options Hammerspoon offers, check out the Getting Started Guide and the full API documentation as well as the already pre-made plugins called Spoons.
Typically you would write a configuration file in Lua that connects events to actions. You might want to bind a keyboard shortcut to a series of window operations, or an applescript. You might want to run a series of commands when your wifi interface connects to your home network. You might want to display an alert when your battery drops below a certain percentage. You might want to do something crazy like have iTunes automatically start playing when your Mac detects you are in Paris.
#objectivec #macos #lua #automation #mjolnir
What can it do for me?
You can write Lua code that interacts with OS X APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard/mouse events, clipboards, location services, wifi, and more.
If you want to explore the options Hammerspoon offers, check out the Getting Started Guide and the full API documentation as well as the already pre-made plugins called Spoons.
Typically you would write a configuration file in Lua that connects events to actions. You might want to bind a keyboard shortcut to a series of window operations, or an applescript. You might want to run a series of commands when your wifi interface connects to your home network. You might want to display an alert when your battery drops below a certain percentage. You might want to do something crazy like have iTunes automatically start playing when your Mac detects you are in Paris.
#objectivec #macos #lua #automation #mjolnir
GitHub
GitHub - Hammerspoon/hammerspoon: Staggeringly powerful macOS desktop automation with Lua
Staggeringly powerful macOS desktop automation with Lua - Hammerspoon/hammerspoon
👍1🔥1👏1
Syn is a global Process Registry and Process Group manager for Erlang and Elixir. Syn automatically manages addition / removal of nodes from the cluster, and is also able to recover from net splits.
#erlang #cluster #pubsub #elixir #process #registry
#erlang #cluster #pubsub #elixir #process #registry
GitHub
GitHub - ostinelli/syn: A scalable global Process Registry and Process Group manager for Erlang and Elixir.
A scalable global Process Registry and Process Group manager for Erlang and Elixir. - ostinelli/syn
❤1👍1🔥1
Mobile Security Framework is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. MobSF support mobile app binaries (APK, XAPK, IPA & APPX) along with zipped source code and provides REST APIs for seamless integration with your CI/CD or DevSecOps pipeline.The Dynamic Analyzer helps you to perform runtime security assessment and interactive instrumented testing.
#python #rest #security #pentesting #malware #analysis #framework
#python #rest #security #pentesting #malware #analysis #framework
❤1👍1🔥1
Devops Exercises.
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions.
#python #devops #git #linux #docker #kubernetes #aws #ansible #sql #azure #containers #terraform #openstack #interview #prometheus #coding #sre
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions.
#python #devops #git #linux #docker #kubernetes #aws #ansible #sql #azure #containers #terraform #openstack #interview #prometheus #coding #sre
❤1🔥1👏1