Fast Rust-based replacement for pip, venv, virtualenv, pyenv, and pip-tools. One tool for python version management, virtual envs, and dependency management.
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | shFast Rust-based replacement for pip, venv, virtualenv, pyenv, and pip-tools. One tool for python version management, virtual envs, and dependency management.
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | shBu qo‘llanma macOS va iTerm2’da ishlaydigan dasturchilar uchun tayyorlangan. Maqsad — terminalni chiroyli qilish emas, balki kundalik ishlarni tezlashtiradigan tool’lardan to‘g‘ri foydalanish.
Har bir bo‘limda:
| """ | |
| $ wget https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.json | |
| $ python django-top-100.py | |
| """ | |
| import json | |
| from pathlib import Path | |
Enjoy ! 😄
Download iTerm2 here.
| services: | |
| odoo: | |
| image: odoo:17.0 | |
| container_name: odoo | |
| restart: unless-stopped | |
| links: | |
| - db:db | |
| depends_on: | |
| - db |
| from functools import lru_cache, wraps | |
| from time import monotonic | |
| def lru_cache_with_ttl(maxsize=128, typed=False, ttl=60): | |
| """Least-recently used cache with time-to-live (ttl) limit.""" | |
| class Result: | |
| __slots__ = ("value", "death") |
Mobile = /^9989[012345789][0-9]{7}$/
All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/
| from pdf_generator import PDFGenerator | |
| instance = Model.objacts.get(id=1) #example | |
| context = { | |
| "data": instance | |
| } #use as {{ data }} in html_file_path | |
| #Create object | |
| pdf = PDFGenerator( |