β¨ How to Use Google's Gemini CLI for AI Code Assistance β¨
π Learn how to use Gemini CLI to bring Google's AI-powered coding assistance directly into your terminal to help you analyze and fix code.
π·οΈ #intermediate #ai #tools
π Learn how to use Gemini CLI to bring Google's AI-powered coding assistance directly into your terminal to help you analyze and fix code.
π·οΈ #intermediate #ai #tools
β¨ evaluation | AI Coding Glossary β¨
π The process of measuring how well an AI system or model meets its objectives.
π·οΈ #Python
π The process of measuring how well an AI system or model meets its objectives.
π·οΈ #Python
β€1
β¨ vector | AI Coding Glossary β¨
π An ordered array of numbers that represents a point, magnitude, and direction.
π·οΈ #Python
π An ordered array of numbers that represents a point, magnitude, and direction.
π·οΈ #Python
β¨ Topic: Python Standard Library β¨
π Practical Python standard library tutorials to master datetime, pathlib, argparse, subprocess, logging, and more. Write faster, cleaner, dependency-free code.
π·οΈ #86_resources
π Practical Python standard library tutorials to master datetime, pathlib, argparse, subprocess, logging, and more. Write faster, cleaner, dependency-free code.
π·οΈ #86_resources
β€1
β¨ Topic: Algorithms Tutorials β¨
π Learn Python algorithms: sorting, searching, graphs, DP, Big O. Use heapq, bisect, deque, lru_cache, timeit. Study practical tips and FAQs for interviews.
π·οΈ #22_resources
π Learn Python algorithms: sorting, searching, graphs, DP, Big O. Use heapq, bisect, deque, lru_cache, timeit. Study practical tips and FAQs for interviews.
π·οΈ #22_resources
β€1
β¨ Meet Our Team β¨
π Meet Real Python's team of expert Python developers, educators, and 190+ contributors bringing real-world experience to create practical Python education.
π·οΈ #Python
π Meet Real Python's team of expert Python developers, educators, and 190+ contributors bringing real-world experience to create practical Python education.
π·οΈ #Python
π₯1
β¨ Pydantic AI | AI Coding Tools β¨
π A Python framework for building typed LLM agents leveraging Pydantic.
π·οΈ #Python
π A Python framework for building typed LLM agents leveraging Pydantic.
π·οΈ #Python
β€1
β¨ Google Antigravity | AI Coding Tools β¨
π An agent-first IDE where AI agents operate the editor, terminal, and browser and produce verifiable Artifacts of their work.
π·οΈ #Python
π An agent-first IDE where AI agents operate the editor, terminal, and browser and produce verifiable Artifacts of their work.
π·οΈ #Python
β¨ nearest neighbor | AI Coding Glossary β¨
π The data point in a reference set that has the smallest distance to a query point.
π·οΈ #Python
π The data point in a reference set that has the smallest distance to a query point.
π·οΈ #Python
β¨ autoregressive generation | AI Coding Glossary β¨
π A method in which a model produces a sequence one token at a time, with each token conditioned on all previously generated tokens.
π·οΈ #Python
π A method in which a model produces a sequence one token at a time, with each token conditioned on all previously generated tokens.
π·οΈ #Python
β¨ Quiz: Build a Python MCP Client to Test Servers From Your Terminal β¨
π Learn how to create a Python MCP client, start an AI-powered chat session, and run it from the command line. Check your understanding.
π·οΈ #intermediate #ai #projects
π Learn how to create a Python MCP client, start an AI-powered chat session, and run it from the command line. Check your understanding.
π·οΈ #intermediate #ai #projects
β€3
Ready Python script: takes a regular PDF and creates a password-protected copy.
pip install PyPDF2
from __future__ import annotations
from pathlib import Path
from typing import Union
from PyPDF2 import PdfReader, PdfWriter
PDFPath = Union[str, Path]
def encrypt_pdf(input_path: PDFPath, output_path: PDFPath, password: str) -> Path:
"""
Encrypts a PDF file with a password and saves it to output_path.
Returns the path to the encrypted file.
"""
in_path = Path(input_path)
out_path = Path(output_path)
reader = PdfReader(in_path)
writer = PdfWriter()
for page in reader.pages:
writer.add_page(page)
writer.encrypt(password)
with out_path.open("wb") as f:
writer.write(f)
return out_path
def encrypt_with_suffix(input_path: PDFPath, password: str, suffix: str = "_encrypted") -> Path:
"""
Creates an encrypted copy next to the original file.
For example: secret.pdf β secret_encrypted.pdf
"""
in_path = Path(input_path)
output_path = in_path.with_name(f"{in_path.stem}{suffix}{in_path.suffix}")
return encrypt_pdf(in_path, output_path, password)
if __name__ == "__main__":
pdf_file = "secret.pdf"
pdf_password = "pythontoday"
encrypted_path = encrypt_with_suffix(pdf_file, pdf_password)
print(f"Encrypted file created: {encrypted_path}")
#python #code #tipsandtricks
https://t.me/DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
β€4π1π1
How to create a sinusoidal wave in Python using Bokeh and NumPy π
π @DataScience4
import numpy as np
from bokeh.layouts import gridplot
from bokeh.plotting import figure, output_file, show
N = 100
x = np.linspace(0, 4 * np.pi, N)
y0 = np.sin(x)
output_file('sinewave.html')
sine = figure(width=500, plot_height=500, title='Sine')
sine.circle(x, y0, size=10, color="navy", alpha=0.5)
p = gridplot([[sine]], toolbar_location=None)
show(p)
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€2π₯1
β¨ Sponsorship Opportunities β¨
π By sponsoring Real Python you will reach a demographic of Python software engineers dedicated to improving their craft and their professional careers. We offer our clients multiple touchpoints across our platforms, ensuring your message cuts through to our audience.
π·οΈ #Python
π By sponsoring Real Python you will reach a demographic of Python software engineers dedicated to improving their craft and their professional careers. We offer our clients multiple touchpoints across our platforms, ensuring your message cuts through to our audience.
π·οΈ #Python
β€1
Forwarded from Machine Learning with Python
π THE 7-DAY PROFIT CHALLENGE! π
Can you turn $100 into $5,000 in just 7 days?
Lisa can. And sheβs challenging YOU to do the same. π
https://t.me/+AOPQVJRWlJc5ZGRi
https://t.me/+AOPQVJRWlJc5ZGRi
https://t.me/+AOPQVJRWlJc5ZGRi
Can you turn $100 into $5,000 in just 7 days?
Lisa can. And sheβs challenging YOU to do the same. π
https://t.me/+AOPQVJRWlJc5ZGRi
https://t.me/+AOPQVJRWlJc5ZGRi
https://t.me/+AOPQVJRWlJc5ZGRi
β€3
β¨ latency | AI Coding Glossary β¨
π The elapsed time between a request and the observable response.
π·οΈ #Python
π The elapsed time between a request and the observable response.
π·οΈ #Python
β¨ telemetry | AI Coding Glossary β¨
π The automated collection and transmission of measurements or event data from remote or distributed systems.
π·οΈ #Python
π The automated collection and transmission of measurements or event data from remote or distributed systems.
π·οΈ #Python
π1