Binary Tree
731 subscribers
722 photos
2 videos
1 file
916 links
This is a channel about Open Source, software development, and IT in general.
Download Telegram
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
πŸ‘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
❀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
πŸ‘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
πŸ‘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
πŸ”₯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
❀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
πŸ‘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

- 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
πŸ‘5πŸ†3πŸ”₯1
Flet is a framework that enables you to easily build realtime web, mobile and desktop apps in your favorite language and securely share them with your team. No frontend experience required.

#python #dart #go #android #ios #flutter #web #ui
πŸ”₯10πŸ‘2
rembg is a tool to remove images background.

#python #background #removal
πŸ”₯3❀2
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 #
πŸ”₯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
❀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
πŸ”₯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
πŸ”₯5πŸ‘1