Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#typescript#local_first#notetaking#open_source#react#rust#tauri#typescript
Hyprnote is a tool that helps you with meeting notes. It records and transcribes meetings, then creates useful summaries from the notes. What's special about Hyprnote is that it works offline using open-source models, so you don't need the internet to use it. It's also very flexible because you can add or create extensions to make it work better for you. This means you can use it anywhere, even without internet, and it helps keep your notes organized and private.
https://github.com/fastrepl/hyprnote
Mili Secures $2M Funding Round
Mili has successfully raised $2 million in funding as of December 17, 2024. The AI-powered platform aims to enhance workflows and improve client experiences, reducing the burden of note-taking tasks.
Learn more: Mili
#Funding#AI#Mili#Startups#Tech#Workflows#Investment#ClientExperience#NoteTaking#Efficiency#Innovation