#python #soft #github
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6π1
Forwarded from PyData Careers
If you're testing forms, mockups, or just want to play with data, there's Mimesis β a generator of fake data. Names, emails, addresses, and phone numbers. There's a location setting that allows you to select a country, and the data will be generated accordingly.
from typing import Dict
from mimesis.enums import Gender
from mimesis import Person
def generate_fake_user(locale: str = "es", gender: Gender = Gender.MALE) -> Dict[str, str]:
"""
Generates fake user data based on the locale and gender.
:param locale: The locale (for example, 'ru', 'en', 'es')
:param gender: The gender (Gender.MALE or Gender.FEMALE)
:return: A dictionary with the fake user data
"""
person = Person(locale)
user_data = {
"name": person.full_name(gender=gender),
"height": person.height(),
"phone": person.telephone(),
"occupation": person.occupation(),
}
return user_data
if __name__ == "__main__":
fake_user = generate_fake_user(locale="es", gender=Gender.MALE)
print(fake_user)
{
'name': 'Carlos Herrera',
'height': '1.84',
'phone': '912 475 289',
'occupation': 'Arquitecto'
)ru, πΊπΈ en, πͺπΈ es, etc.) Save it, it'll come in handy
#python #github #interview
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6
β¨ introspection | Python Glossary β¨
π The ability of a program to examine the type or properties of an object at runtime.
π·οΈ #Python
π The ability of a program to examine the type or properties of an object at runtime.
π·οΈ #Python
β¨ local variable | Python Glossary β¨
π A variable that you bind inside a function or method body.
π·οΈ #Python
π A variable that you bind inside a function or method body.
π·οΈ #Python
β¨ Anaconda Navigator | Python Tools β¨
π A desktop graphical interface included with the Anaconda Distribution.
π·οΈ #Python
π A desktop graphical interface included with the Anaconda Distribution.
π·οΈ #Python
β€2
β¨ unpacking | Python Glossary β¨
π Passing multiple values at once by expanding an iterable.
π·οΈ #Python
π Passing multiple values at once by expanding an iterable.
π·οΈ #Python
β¨ relative import | Python Glossary β¨
π Import modules from the same package or parent packages using leading dots.
π·οΈ #Python
π Import modules from the same package or parent packages using leading dots.
π·οΈ #Python
β¨ transitive dependency | Python Glossary β¨
π An indirect requirement of your project.
π·οΈ #Python
π An indirect requirement of your project.
π·οΈ #Python
β¨ wildcard import | Python Glossary β¨
π An import uses the star syntax to pull many names into your current namespace at once.
π·οΈ #Python
π An import uses the star syntax to pull many names into your current namespace at once.
π·οΈ #Python
β¨ cProfile | Python Standard Library β¨
π Provides a way to measure where time is being spent in your application.
π·οΈ #Python
π Provides a way to measure where time is being spent in your application.
π·οΈ #Python
β€3
β¨ ast | Python Standard Library β¨
π Provides functionality to work with Abstract Syntax Trees (ASTs).
π·οΈ #Python
π Provides functionality to work with Abstract Syntax Trees (ASTs).
π·οΈ #Python
β¨ Python + AI Content Specialist Wanted β¨
π We're looking for Python + AI Content Specialists to join our team. Keep reading to find out what's involved and how you can apply.
π·οΈ #Python
π We're looking for Python + AI Content Specialists to join our team. Keep reading to find out what's involved and how you can apply.
π·οΈ #Python
β¨ Join the Real Python Team β¨
π Explore open positions at Real Python. Join our team of Python educators and help millions of developers level up their skills.
π·οΈ #Python
π Explore open positions at Real Python. Join our team of Python educators and help millions of developers level up their skills.
π·οΈ #Python
β¨ atexit | Python Standard Library β¨
π Provides an interface for registering functions to be executed upon the programβs normal termination.
π·οΈ #Python
π Provides an interface for registering functions to be executed upon the programβs normal termination.
π·οΈ #Python
β¨ Pythonic code | Python Best Practices β¨
π Guidelines and best practices to using language idioms and constructs that will make your code more Pythonic, faster, and more beautiful.
π·οΈ #Python
π Guidelines and best practices to using language idioms and constructs that will make your code more Pythonic, faster, and more beautiful.
π·οΈ #Python
β¨ Pi | AI Coding Tools β¨
π A minimalist, extensible coding agent CLI with only four built-in tools: read, write, edit, and bash.
π·οΈ #Python
π A minimalist, extensible coding agent CLI with only four built-in tools: read, write, edit, and bash.
π·οΈ #Python
π― Want to Upskill in IT? Try Our FREE 2026 Learning Kits!
SPOTO gives you free, instant access to high-quality, updated resources that help you study smarter and pass exams faster.
β Latest Exam Materials:
Covering #Python, #Cisco, #PMI, #Fortinet, #AWS, #Azure, #AI, #Excel, #comptia, #ITIL, #cloud & more!
β 100% Free, No Sign-up:
All materials are instantly downloadable
β Whatβs Inside:
γ»πIT Certs E-book: https://bit.ly/3Mlu5ez
γ»πIT Exams Skill Test: https://bit.ly/3NVrgRU
γ»πFree IT courses: https://bit.ly/3M9h5su
γ»π€Free PMP Study Guide: https://bit.ly/4te3EIn
γ»βοΈFree Cloud Study Guide: https://bit.ly/4kgFVDs
π Become Part of Our IT Learning Circle! resources and support:
https://chat.whatsapp.com/FlG2rOYVySLEHLKXF3nKGB
π¬ Want exam help? Chat with an admin now!
wa.link/8fy3x4
SPOTO gives you free, instant access to high-quality, updated resources that help you study smarter and pass exams faster.
β Latest Exam Materials:
Covering #Python, #Cisco, #PMI, #Fortinet, #AWS, #Azure, #AI, #Excel, #comptia, #ITIL, #cloud & more!
β 100% Free, No Sign-up:
All materials are instantly downloadable
β Whatβs Inside:
γ»πIT Certs E-book: https://bit.ly/3Mlu5ez
γ»πIT Exams Skill Test: https://bit.ly/3NVrgRU
γ»πFree IT courses: https://bit.ly/3M9h5su
γ»π€Free PMP Study Guide: https://bit.ly/4te3EIn
γ»βοΈFree Cloud Study Guide: https://bit.ly/4kgFVDs
π Become Part of Our IT Learning Circle! resources and support:
https://chat.whatsapp.com/FlG2rOYVySLEHLKXF3nKGB
π¬ Want exam help? Chat with an admin now!
wa.link/8fy3x4
β¨ resource management | Python Best Practices β¨
π Guidelines and best practices for managing external resources, such as files, network connections, and similar, in Python.
π·οΈ #Python
π Guidelines and best practices for managing external resources, such as files, network connections, and similar, in Python.
π·οΈ #Python