Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#tailwindCss#frontend
Tailwind bilan animatsiyalarni yanada chiroyli qiling!
CSS’da murakkab easing funksiyalarini yozib o‘tirish shart emas. Origin UI sizga 20+ tayyor animatsiya sinflarini taqdim etadi.
✅ Faqat kerakli klassni nusxalaysiz va loyihangizga qo‘shib qo‘yasiz — hammasi tayyor!
Frontend loyihalaringizni jonlantirish uchun juda qulay.
🔗 Ko‘rib chiqing: originui.com/easings
💻@dasturlash_hayoti— Dasturchilar uchun eng kerakli maslahatlar va foydali kontent
#typescript#svelte#sveltekit#tailwindcss#tauri
Epicenter is a free, open-source set of local-first apps that let you own and control your data by storing everything—notes, transcripts, chats—in one simple folder using plain text and SQLite. You can use any AI model you want, customize tools, and access your data anywhere without relying on cloud services. Key apps include Whispering, which transcribes your speech locally, and epicenter.sh, a personal assistant that helps you search and interact with your data. This setup gives you privacy, flexibility, and full control over your information, avoiding locked, siloed apps and data traps. It’s great for anyone who values data ownership and open software.
https://github.com/epicenter-so/epicenter