TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, and Industrial IoT. It enables efficient, real-time data ingestion, processing, and monitoring of TB and even PB scale data per day, generated by billions of sensors and data collectors. TDengine differentiates itself from other time-seires databases with the following advantages:
- High-Performance
- Simplified Solution
- Cloud Native
- Ease of Use
- Easy Data Analytics
- Open Source
#c #python #sql #database #monitoring #metrics #bigdata #scalability #distributed
- High-Performance
- Simplified Solution
- Cloud Native
- Ease of Use
- Easy Data Analytics
- Open Source
#c #python #sql #database #monitoring #metrics #bigdata #scalability #distributed
π2π€2β€1
Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself. It can generate several different types of reports to help you analyze the captured memory usage data.
Notable features:
β’ π΅οΈββοΈ Traces every function call so it can accurately represent the call stack, unlike sampling profilers.
β’ β Also handles native calls in C/C++ libraries so the entire call stack is present in the results.
β’ π Blazing fast! Profiling slows the application only slightly. Tracking native code is somewhat slower, but this can be enabled or disabled on demand.
β’ π It can generate various reports about the collected memory usage data, like flame graphs.
β’ π§΅ Works with Python threads.
β’ π½ Works with native-threads (e.g. C++ threads in C extensions).
#python #profiler #memory #leak #detection
Notable features:
β’ π΅οΈββοΈ Traces every function call so it can accurately represent the call stack, unlike sampling profilers.
β’ β Also handles native calls in C/C++ libraries so the entire call stack is present in the results.
β’ π Blazing fast! Profiling slows the application only slightly. Tracking native code is somewhat slower, but this can be enabled or disabled on demand.
β’ π It can generate various reports about the collected memory usage data, like flame graphs.
β’ π§΅ Works with Python threads.
β’ π½ Works with native-threads (e.g. C++ threads in C extensions).
#python #profiler #memory #leak #detection
β€6π₯2π1
CustomTkinter is a python UI-library based on Tkinter, which provides new, modern and fully customizable widgets. They are created and used like normal Tkinter widgets and can also be used in combination with normal Tkinter elements. The widgets and the window colors either adapt to the system appearance or the manually set mode ('light', 'dark'), and all CustomTkinter widgets and windows support HighDPI scaling (Windows, macOS). With CustomTkinter you'll get a consistent and modern look across all desktop platforms.
#python #tkinter #gui #ui #macos #linux #windows
#python #tkinter #gui #ui #macos #linux #windows
π5π₯3β€2π1
httpie is all the user-friendliness of our Terminal version, now wrapped up in a sleek graphical interface.
- Interact painlessly with APIs
- Organize your work in spaces, collections, and tabs
- Parametrize requests with variables and environments
- Work across devices with auto-save and realtime sync
- Build and preview requests without sending them
- Use the app offline and without an account
#http #client #python #desktop #cli #web #macos #windows #linux #rest #api
- Interact painlessly with APIs
- Organize your work in spaces, collections, and tabs
- Parametrize requests with variables and environments
- Work across devices with auto-save and realtime sync
- Build and preview requests without sending them
- Use the app offline and without an account
#http #client #python #desktop #cli #web #macos #windows #linux #rest #api
π3β€1π₯1π1
Stable Diffusion is a latent text-to-image diffusion model. Thanks to a generous compute donation from Stability AI and support from LAION, we were able to train a Latent Diffusion Model on 512x512 images from a subset of the LAION-5B database. Similar to Google's Imagen, this model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and runs on a GPU with at least 10GB VRAM. See this section below and the model card.
#python #ml #dl #text2image #diffusion #model #torch #torchvision
#python #ml #dl #text2image #diffusion #model #torch #torchvision
π₯7β€1π1
How async/await works in Python.
Code written in the async/await style looks like regular synchronous code but works very differently. To understand how it works, one should be familiar with many non-trivial concepts including concurrency, parallelism, event loops, I/O multiplexing, asynchrony, cooperative multitasking and coroutines. Python's implementation of async/await adds even more concepts to this list: generators, generator-based coroutines, native coroutines, yield and yield from. Because of this complexity, many Python programmers that use async/await do not realize how it actually works. I believe that it should not be the case. The async/await pattern can be explained in a simple manner if you start from the ground up. And that's what we're going to do today.
Author: Victor Skvortsov.
#article #python #async #await #concurrency #parallelism #event #io #multiplexing #multitasking
Code written in the async/await style looks like regular synchronous code but works very differently. To understand how it works, one should be familiar with many non-trivial concepts including concurrency, parallelism, event loops, I/O multiplexing, asynchrony, cooperative multitasking and coroutines. Python's implementation of async/await adds even more concepts to this list: generators, generator-based coroutines, native coroutines, yield and yield from. Because of this complexity, many Python programmers that use async/await do not realize how it actually works. I believe that it should not be the case. The async/await pattern can be explained in a simple manner if you start from the ground up. And that's what we're going to do today.
Author: Victor Skvortsov.
#article #python #async #await #concurrency #parallelism #event #io #multiplexing #multitasking
β€6π4π₯2π1
Python Type Checking.
In this guide, you will get a look into Python type checking. Traditionally, types have been handled by the Python interpreter in a flexible but implicit way. Recent versions of Python allow you to specify explicit type hints that can be used by different tools to help you develop your code more efficiently.
#python #typing #mypy #realpython #guide #tutorial
In this guide, you will get a look into Python type checking. Traditionally, types have been handled by the Python interpreter in a flexible but implicit way. Recent versions of Python allow you to specify explicit type hints that can be used by different tools to help you develop your code more efficiently.
#python #typing #mypy #realpython #guide #tutorial
π6π2β€1
django-template β a highly opinionated starter project which I use as a scaffold for all my Django projects.
I'm still working on this one, so work is in progress, but feel free to send PRs.
Features
-
-
-
-
-
-
-
-
-
-
#django #python #scaffold #template #bestpractices
I'm still working on this one, so work is in progress, but feel free to send PRs.
Features
-
Python 3.10, Django 4.1 and DRF 3.14.0-
poetry for managing dependencies-
postgres as a database-
redis as cache and message queue-
docker for development, testing, and production-
celery for asynchronous tasks-
black and isort for neat code formatting-
pytest and mimesis for testing-
django-debug-toolbar for debugging-
django-filter for easy filtering#django #python #scaffold #template #bestpractices
π₯8π3π©1π1
OpenAI Cookbook.
This repository shares example code and example prompts for accomplishing common tasks with the OpenAI API.
To try these examples yourself, youβll need an OpenAI account. Create a free account to get started.
Most code examples are written in Python, though the concepts can be applied in any language.
In the same way that a cookbook's recipes don't span all possible meals or techniques, these examples don't span all possible use cases or methods. Use them as starting points upon which to elaborate, discover, and invent.
#python #openai #ai
This repository shares example code and example prompts for accomplishing common tasks with the OpenAI API.
To try these examples yourself, youβll need an OpenAI account. Create a free account to get started.
Most code examples are written in Python, though the concepts can be applied in any language.
In the same way that a cookbook's recipes don't span all possible meals or techniques, these examples don't span all possible use cases or methods. Use them as starting points upon which to elaborate, discover, and invent.
#python #openai #ai
π5π3π₯1
structlog is the production-ready logging solution for Python:
- Simple: Everything is about functions that take and return dictionaries β all hidden behind familiar APIs.
- Powerful: Functions and dictionaries arenβt just simple but also powerful. structlog leaves you in control.
- Fast: structlog is not hamstrung by designs of yore. Its flexibility comes not at the price of performance.
Thanks to its flexible design, you choose whether you want structlog to take care of the output of your log entries or whether you prefer to forward them to an existing logging system like the standard library's logging module.
#python #logging #structured #json #
- Simple: Everything is about functions that take and return dictionaries β all hidden behind familiar APIs.
- Powerful: Functions and dictionaries arenβt just simple but also powerful. structlog leaves you in control.
- Fast: structlog is not hamstrung by designs of yore. Its flexibility comes not at the price of performance.
Thanks to its flexible design, you choose whether you want structlog to take care of the output of your log entries or whether you prefer to forward them to an existing logging system like the standard library's logging module.
#python #logging #structured #json #
π₯3π2
Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multitasking model that can perform multilingual speech recognition, speech translation, and language identification.
#python #openai #speech_recognition
#python #openai #speech_recognition
β€5
PySentry audits Python projects for known security vulnerabilities by analyzing dependency files (uv.lock, pyproject.toml) and cross-referencing them against multiple vulnerability databases. It provides comprehensive reporting with support for various output formats and filtering options.
#rust #python #security #vulnerability
#rust #python #security #vulnerability
π₯5
Atlas is a language-agnostic tool for managing and migrating database schemas using modern DevOps principles. It offers two workflows:
- Declarative: Similar to Terraform, Atlas compares the current state of the database to the desired state, as defined in an HCL, SQL, or ORM schema. Based on this comparison, it generates and executes a migration plan to transition the database to its desired state.
- Versioned: Unlike other tools, Atlas automatically plans schema migrations for you. Users can describe their desired database schema in HCL, SQL, or their chosen ORM, and by utilizing Atlas, they can plan, lint, and apply the necessary migrations to the database.
#go #database #schema #python #java #migrating
- Declarative: Similar to Terraform, Atlas compares the current state of the database to the desired state, as defined in an HCL, SQL, or ORM schema. Based on this comparison, it generates and executes a migration plan to transition the database to its desired state.
- Versioned: Unlike other tools, Atlas automatically plans schema migrations for you. Users can describe their desired database schema in HCL, SQL, or their chosen ORM, and by utilizing Atlas, they can plan, lint, and apply the necessary migrations to the database.
#go #database #schema #python #java #migrating
π₯5π1