Saravanan666/pypi-org huggingface dataset:
Package: nordvpn-tray
NordVPN TrayA cross-platform system tray application for interacting with Nord VPN.DescriptionThe official NordVPN clients for both Windows and Linux have well-known limitations. For instance, in Windows, to list
all servers of a specific country, you must use a search pattern likecountry_name #, while in Linux, it is not
possible at all. Furthermore, regardless of the platform, these clients do not provide essential information such as the
server's load and external IP, even if the user has the corresponding identification code.To overcome these limitations, the current project expands the functionality of the official clients by introducing a
solution in the form of a cross-platform system tray application. By placing an icon in the system tray, users can
easily access a menu displaying the complete list of available NordVPN servers. The servers are conveniently categorized
by continents and countries, allowing for effortless navigation. Moreover, they are ordered by their load, enabling
users to select the server with the lowest load for optimal performance.PreviewRequirementsThe official NordVPN client (availablehere)InstallationTo install NordVPN Tray, run the following command:pip install nordvpn-trayUsageTo launch NordVPN Tray:On Windows, double-click thenordvpn-tray.exe(usually located
in%LOCALAPPDATA%\Programs\Python\Python##\Scripts) or run thenordvpn-traycommand from the command prompt.On Linux, double-click thenordvpn-tray(usually located in~/.local/bin) or run the./nordvpn-traycommand
from the terminal.Common Issues"ValueError: Namespace AppIndicator3 not available" (Linux Only)This error message indicates that theAppIndicator3module, which the application uses to display tray icons on Linux,
is not available on your system.To resolve this issue, you will need to install thelibayatana-appindicator3-devpackage, which provides the necessary
files and libraries for theAppIndicator3module. To install the package, use the following command:sudo apt-get install libayatana-appindicator3-devDisclaimerAll trademarks, logos and brand names are the property of their respective owners. All company and service names used in
this repository are for identification purposes only. The use of NordVPN trademarks does not imply any endorsement,
partnership, or sponsorship by Nordsec Ltd.ContributionPull requests and issues are welcome.LicenseThis project is licensed under the GNU General Public License v3.0.See theLICENSEfile for details.
Package: nore
nore -- Completely Unnecessary .gitignore ManagementFeaturesSupports 128 environments and growingOptionally specify a location for the .gitignore filePlanned FeaturesAdd support for github/gitignore/Global .gitignore templatesAdd support for github/gitignore/community .gitignore templatesOption to merge .gitignore files together rather than overwriteDetect and merge into a user's global .gitignoreAdd completionsInstallationInstall nore by running:pipinstallnoreor better yetpipxinstallnoreUsageUsage: nore [OPTIONS] [LANGUAGE]

Arguments:
  [LANGUAGE]  Language for created .gitignore file.

Options:
  -l, --list               List available .gitignore language.
  --output-path DIRECTORY  Where to create the .gitignore file.

  --install-completion     Install completion for the current shell.
  --show-completion        Show completion for the current shell, to copy it
                           or customize the installation.

  --help                   Show this message and exit.Create a python .gitignore file in the current directory by running>>norenewpython
Created.gitignoreat.List all available .gitignore types by running>>norelist
actionscriptgodotpythonadagradleqooxdooagdagrailsqtandroidgwtrappceleratortitaniumhaskellrailsappengineidrisrakuarchlinuxpackagesigorprorhodesrhomobileautotoolsjavaroscjbossrubyc++jekyllrustcakephpjenkins_homesasscfwheelsjoomlascalachefcookbookjuliaschemeclojurekicadsconscmakekohanascrivenercodeigniterkotlinsdcccommonlisplabviewseamgencomposerlaravelsketchupconcrete5leiningensmalltalkcoqlemonstandstellacraftcmslilypondsugarcrmcudalithiumswiftdluasymfonydartmagentosymphonycmsdelphimaventerraformdmmercurytexdrupalmetaprogrammingsystemtextpatterneaglenanocturbogears2elispnimtwincat3elixirnodetypo3elmobjective-cumbracoepiserverocamlunityerlangopaunrealengineexpressionengineopencartvisualstudioextjsoracleformsvvvvfancypackerwaffinaleperlwordpressforcedotcomphalconxojofortranplayframeworkyeomanfuelphpploneyiigcovprestashopzendframeworkgitbookprocessingzephirgopurescript
Package: norecaptcha-python3
InstallationRun:pip install norecaptcha-python3Example of usefrom norecaptcha3.captcha import submit

r = submit(remote_ip=user_ip,
           response=client_code,
           secret_key=captcha_secret)
if not r.is_valid:
    raise Exception('Invalid captcha')Supported versionsPython >= 3.0Google No CAPTCHA reCAPTCHA 1.0
Package: norecon
用途recon自动化, 提供域名或ip,进行whois查询，dns记录查询，ip端口扫描，http屏幕快照．生成markdown格式的报告，可以使用Obsidian或vscode的markdown notes插件打开,借助双向链接功能，方便查看．或者导出报告为sqlite数据库，然后使用BI工具进行数据分析，比如metabase安装使用安装依赖程序amass用于子域名查找,下载地址findomain用于快速子域名查找findomainnmap用于服务扫描masscan用于端口发现aquatone用于屏幕快照,注意必须使用修改版，提供了session单独保存与合并的功能,下载地址:aquatone安装程序使用python3环境pipinstallnorecon自动化安装不喜欢手动安装的话，可以使用ssh-scripts进行自动化安装使用方法norecon -p 项目保存目录　域名或ip比如测试yahoo,支持一级域名或子域名norecon-v-pyahooyahoo.comengadget.comlogin.aol.com如果中途中断，继续执行以上命令，会自动跳过已经扫描的部分．可使用--overwrite强制重新扫描．也可以在项目执行完毕后再添加ip或域名,或只进行ip扫描(支持cidr子网或ip范围):norecon-v-pyahoo202.165.107.00/28119.161.10.15-119.161.10.40106.10.236.40扫描完成后，生成报告:noreport-v2yahoo或者导出数据到sqlite数据库:noreport-v2-shttp://localhost:8080-tsqliteyahoo如果要访问数据库中的screen链接，需要在项目的父文件夹启动http server:python-mhttp.server8080使用docker镜像使用norecon镜像创建容器，把本地目录/data/project映射到docker容器的/data目录,
设置nowx的token值为AT_xx(需要修改为自己申请的token,参考nowx部分),并命名容器名为norecon:dockerrun-d--namenorecon-eWXPUSHER_TOKEN=AT_xx-v/data/project/:/datantestoc/norecon如果容器已经存在，则要删除已经创建的容器:dockerrmnorecon容器启动后,进入容器shell:dockerexec-itnorecon/bin/bash然后就可以正常使用norecon等命令，在容器的bash上操作是为了方便执行管道操作，读取stdin输入数据等。容器中没有提供chrome,因此屏幕快照无法执行，可以自己使用docker配置browserless，
或使用提供的docker-compose.yml:wgethttps://raw.githubusercontent.com/ntestoc3/norecon/master/docker-compose.yml# 修改docker-compose.yml中WXPUSHER_TOKEN的值, 参考nowx部分docker-composeup-ddocker-compose默认使用当前目录映射到/data,可以根据自己需要修改;退出容器的交互式shell使用CTRL-p, CTRL-q组合键。更新容器为最新版本(删除所有使用的image,再重新下载),在docker-compose.yml文件目录执行:docker-composedown--rmiall&&docker-composeup-d或者直接在容器中使用pip更新报告截图使用Obsidian显示报告结果附带的单独工具noresolvers域名解析服务器查询工具，根据可用性和超时时间获取域名解析服务器列表．按响应时间排序．使用方法,可用性为0.9,响应时间为3秒内，输出解析服务器列表到resolve：noresolvers-r0.9-t3-oresolvedomainvalid检测一级域名是否有效，即含有ns记录，是正常使用的一级域名．可以指定resolvers文件，即noresolvers输出的域名解析服务器文件．norecords获取一个域名的所有解析记录wildomains获取一个通配域名的所有一级域名，比如baidu.*,会查找所有可能的tld后缀，找到还在使用的一级域名．可以使用tld文件指定要查找的后缀，如果不指定，会查找大量tld,速度比较慢．nosubsfinder从网页查询子域名noamass调用amass查询子域名nofindomain调用findomain查询子域名nowhoiswhois查询域名或ipnonmap调用masscan和nmap进行服务扫描noffuf调用ffuf进行路径爆破noscreen调用aquatone进行屏幕快照nowx发送微信消息,借助微信消息推送服务发送消息．
可以实现命令执行完毕后发送微信消息进行通知．第一次运行输入nowx执行，根据提示进行配置:➜sub-domainsgit:(master)✗nowx
未发现token配置
访问http://wxpusher.zjiecode.com/admin/app/list创建token.
输入申请的APP_TOKEN:[粘贴页面申请的token]网页打开下面的网址，微信扫码关注以接收消息：
https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=xxxxxx或者直接通过环境变量设置token:exportWXPUSHER_TOKEN=AT_xxxx然后可以在执行时带上消息参数发送消息:nowhoisbing.com;nowxwhois执行完毕,返回代码:$?上面的命令在nowhois执行完毕后，nowx发送微信消息，通知完成及nowhois的返回代码．
注意两个命令之间使用;分割．声明本程序仅供于学习交流，请使用者遵守《中华人民共和国网络安全法》，
勿将此工具用于非授权的测试，
程序开发者不负任何连带法律责任。
Package: no-recursion
This module helps you to get rid of recursions when you want to rename a builtin function, or a function that already exists.usage:fromno_recursionimportno_recursion,replace@no_recursion@replace(bin)defbin(n:int):returnbin(n)The decoratorreplacemust bebelowno_recursion.it will replace each recursive call tobinwith a call to the "original"bin.You can also set a namespace where it will try to find the original function in,the original function must be named the same as the decorated function.You can specify a particular namespace in@no_recursion.fromno_recursionimportno_recursion,replace@no_recursion(vars(__builtins__))defbin(n:int):returnbin(n)In this example, it will take the builtinbin.The namespace must be a dict that contains the function.You can also usedecorated_f.replace(not the globalreplacefunction) to set a replacement function.importbuiltinsfromno_recursionimportno_recursion,replace@no_recursiondefbin(n:int):returnbin(n)@bin.replacedefreplace_bin(n:int):returnbuiltins.bin(n)All examples above will produce the same result.print(bin(12))# 0b1100NOTES:when you callno_recursionwith parentheses, you must specify a namespace (@no_recursion({}). Otherwise just do@no_recursion.
Exception can be raised.The decoratorreplacemust bebelowno_recursion.In the namespace dictionary, the original function must be named the same as the decorated function.
Package: norerun
rememberBackup to store results of functions, so they do not need to be rerun.
As long as the function is unchanged, and the inputs are the same.from norerun import norerun
@norerun
def count(n):
  for i in range(n):
    pass
  return i

count(1000000000) #this is going to take a few seconds

count(1000000000) #now this is inmediateA hidden pickle file is created in the current working directory ".bak".
It can be deleted to reset the memory, ornorerun.flush()will do the same.
Package: norfair-tracker
Norfair-Pip: Packaged version of the Norfair Tracker ModuleOverviewThis repo is a packaged version of theNorFairtracker module.Installationpip install norfair-trackerDetection Model + Norfairfromnorfair_tracker.norfairimportNorFairtracker=NorFair(args)forimageinimages:dets=detector(image)online_targets=tracker.update(dets)
Package: norfs-py3.4
Normalizedfilesystem. This library offers a common
interface to interact with multiple filesystems, local or remote:import norfs.helpers

local = norfs.helpers.local()
demo_file = local.file('demo.txt')
demo_file.write(b'Hello World')
print(demo_file.read())Install withpip:pip install norfs.For python 3.4 and 3.5 you can installpip installnorfs-py3.4.Find more information in thedocumentation
Package: nori-clone
nori-clonePython bindingUsageInstallationpipinstallnori-clonePre-built pip packages are only provided for x86_64 macOS and linux.
But you can usenori-clonein M1 chips if you build this repo from source.For more details, you can checknori-clonein PyPI.Build from sourceYou can build pip package using Bazel.$bazelbuild//nori/python:build_pip_pkg
INFO:Analyzedtarget//nori/python:build_pip_pkg(0packagesloaded,0targetsconfigured).
INFO:Found1target...
Target//nori/python:build_pip_pkgup-to-date:bazel-bin/nori/python/build_pip_pkg
...
$./bazel-bin/nori/python/build_pip_pkgdist
++uname-s
++trA-Za-z
...
++date
+echoThuJan2021:59:37KST2022:'=== Output wheel file is in: ./dist'ThuJan2021:59:37KST2022:===Outputwheelfileisin:./distYou can find your own wheel file in./dist.How to useimportnoridictionary=nori.Dictionary()dictionary.load_prebuilt_dictionary("./dictionary/latest-dictionary.nori")dictionary.load_user_dictionary("./dictionary/latest-userdict.txt")tokenizer=nori.NoriTokenizer(dictionary)result=tokenizer.tokenize("이 프로젝트는 nori를 재작성하는 프로젝트입니다.")fortokeninresult.tokens:print(token.surface)You can check the inferface of Python bindinghere(./nori/bind.pyi).
Package: norijada-pdf
Norijada PDFNorijada PDF is a Python library for generating PDF files from text files containing short text.InstallationCreate virtual environment and install norijada-pdfpipinstallnorijada-pdfUsageList available fontsnorijada-pdflist-fontsAdd new fontsnorijada-pdfadd-fontsSpecify directory name other than fontsnorijada-pdfadd-fonts--dirsome_dirGenerate PDFSettings will be automatically created in the current directory if it does not exist under settings.json file.Example settings.json file{"font_sizes":{"Bangers-Regular":195,"BebasNeue-Regular":195,"BerkshireSwash-Regular":158,"BlackOpsOne-Regular":139,"Bungee-Regular":120,"Courgette-Regular":156,"Galindo-Regular":140,"KaushanScript-Regular":167,"LibreBaskerville-Regular":140,"Lobster-Regular":172,"MouseMemoirs-Regular":223,"Pacifico-Regular":147,"PatrickHand-Regular":190,"Ranchers-Regular":170,"RubikMonoOne-Regular":100,"RussoOne-Regular":140,"SigmarOne-Regular":110,"Staatliches-Regular":180,"TitanOne-Regular":130},"plot_increment":1,"page_width":500,"default_font_size":150,"max_length":240}You can modify existing settings.json file or reset to defaults by runningnorijada-pdfreset-settingsPDF generator requires an input.txt file in the current directory.
Input file should contain nicknames separated by new line. Additional arguments can be passed to the generator.
Run help command to see all available argumentsnorijada-pdfgenerate-pdf--helpRun the PDF generator with the following commandnorijada-pdfgenerate-pdf--fontBebasNeue-Regular.ttfAdd unique id to the end of the file namenorijada-pdfgenerate-pdf--fontBebasNeue-Regular.ttf--file-idprhg-8aExample input.txt fileNetko Je Super Lik
Čižo
Štupid
Čakra
jajoslav
Kico
Poki
Šokac
Šabo
jajan
Košček
Čupavac
Vau
Kora
Đuro
Pero
Stavros
Jasmin Stavros
Jasmin
KalodontExample output pdf filenicknames-prhg-8a.pdfExample output pdf file rotatednicknames-prhg-8a-rotated.pdfLicenseMIT
Package: norilog-tenpy2
目的Webブラウザーでコメント投稿するWebアプリケーションの練習ツールのバージョンPython:3.6.4pip:9.0.1インストールと起動方法リポジトリーからコードを取得し、その下にvenv環境を用意します:$ git clone https://github.com/tensho9408/norilog.git
$ cd norilog
$ python3.6 -m venv venv
$ source venv/bin/activate
(venv) $ pip install .
(venv) $ norilog
* Runing on httpp://127.0.0.1:8000/開発手順開発用インストールチェックアウトする以下の手順でインストール:(venv) $ pip install -e .依存ライブラリ変更時setup.pyのinstall_requiresを更新する以下の手順で環境を更新する:(venv) $ deactivate
$ python3.6 - m venv --clear venv
$ source venv/bin/activate
(venv) $ pip install -e ./norilog
(venv) $ pip freeze > requirements.txtsetup.pyとrequirements.txtをリポジトリーコミットする
Package: norite
NoriteNorite is a simple static website generator powered byJinja2as the templating engine.Norite's main goal is to act as an easy to use rendering engine for people who like to design their own templates or want to have the option of building a custom structure for their websites. To achieve this goal norite exposes the entire content directory as a tree data-structure to the templates along with the rendered content, leaving it up to the template designer how to interpret and display this information.Implemented Features:Markdown to HTML renderSupport for using toml or json files instead of markdownJinja2 based HTML templatesSupport for embedding Jinja2 templates in markdownSupport for nested folders in website contentSupport for custom templates for any subsection of the content folderCo-located assets with contentSyntax highlightingSass compilation (via libsass or dart-sass)Built-in development server with auto reload on file changesSupport for building custom RSS/Atom feeds and robots.txt using templatesAutomatic sitemap.xml generationSupport for marking files/folders as draftsTodo (Features I am working on or plan to implement):TestsPython based PluginsLive reload in JavascriptIncremental buildsLink checkerMore examplesInstallationNorite is in beta but the features listed above are fully functional. If you like what you see and want to give it a try, you can install using:pipinstallnoriteIt will install the following additional packages:jinja2,markdown,toml,pygmentsandwatchdog.Alternatively, if you want to install it globally as a shell tool within an isolated python environment, install viapipx:pipxinstall'norite'DocumentationCheckout the documentation for norite here:documentationInspirationNorite is influenced byZola'sfeatures and its way of organizing content, borrows a few concepts fromHugo, and takes inspiration fromPelican's andMkdocs's internal implementations for a few things. I would happily recommend using any of these excellent SSGs!LicenseMIT License: Copyright (c) 2022 - 2022 ArshLicense.txt
Package: norm4phone
norm4phoneWhat is norm4phone?norm4phone is a python implement ofAfterShip/phoneA common problem is that users normally input phone numbers in this way:`(817) 569-8900` or
`817569-8900` or
`1(817) 569-8900` or
`+1(817) 569-8900` or ...We always want:+18175698900Install$pipinstallnorm4phoneUsagefromnorm4phoneimportPhoneNormalizerpn=PhoneNormalizer(default_country='China')pn.parse('+8613314672720')//return['+8613314672720','CHN']pn.parse('+86 13314672720')//return['+8613314672720','CHN']pn.parse('13314672720')//return['+8613314672720','CHN']pn.parse('86 13314672720')//return['+8613314672720','CHN']pn.parse('(86) 13314672720')//return['+8613314672720','CHN']pn.parse('(+86) 13314672720')//return['+8613314672720','CHN']pn.parse('+(86) 13314672720')//return['+8613314672720','CHN']pn.parse('+86 133-146-72720')//return['+8613314672720','CHN']pn.parse('1 6479392750')//return['+16479392750','CAN']If you want to validate landline phone numbers, setallowLandlineto true:pn.parse('+(852) 2356-4902', '', true)
Package: norma
# Norma:  A tool for multivariate normal distributionsThis tool provides a conenient interface to the multivariate
normal distribution.  It is very much a work in progress, and not
ready for public consumption.There is not currently much documentation for norma, but if you want
to play with it, simply import and instantiate the JointNormal class.`python from norma.joint_normal import JointNormal `The long term vision for Norma includes improving the existing
JointNormal interface as well as implementing a square-root-information
implementation of the Kalman filter.
Package: norma2
normatrixcheck c epitech coding styleHelpExamplepdmrunnorma2--list-errorspdmrunnorma2--explainG1Installpippipinstall-Unorma2# for bash/zsh completion:sudonorma2--install-completiondocker# pull from dockerhubdockerrun-it--rm-v"$PWD":/code:rosaverio976/norma2# build and run it (need to download https://github.com/X-R-G-B/norma2/blob/main/Dockerfile)dockerbuild.-tnorma2
sudodockerrun-it--rm-v"$PWD":/code:ronorma2Usagenorma2--helpSourceX-R-G-B/norma2Release namewill follow greek letters: https://en.wikipedia.org/wiki/Greek_alphabet
Package: norma43parser
Norma 43 ParserParser for Norma43 bank account documents, commonly used in spanish banks to retrieve account movements.
It supports Python 3.6 onwards.How to install$pipinstallnorma43parserHow to use itfromnorma43parserimportNorma43Parser,DateFormatparser=Norma43Parser(DateFormat.SPANISH)# it reads dates in DMY format, for YMD use DateFormat.ENGLISHcontents=open('./file.n43','r').read()n43=parser.parse(contents)Norma43Document ModelClassNorma43Document:accounts:ListofAccountobjects.reported_entries: number of reported n43 file entries.ClassAccount:header: aHeaderobject.movement_lines:ListofrMovementLineobjectsfooter: aFooterobject.ClassHeader:bank_code: string.branch_code: string.account_number: string.start_date: date.end_date: date.initial_balance: Decimal.currency: string in ISO-4217 (number).information_mode_code: string.account_name: string.ClassMovementLine:branch_code: string.transaction_date: date.value_date: date.amount: Decimal.balance: Decimal.description: string.extra_information: List of strings.ClassFooter:bank_code: string.branch_code: string.account_number: string.debit_entries: integer.debit_amount: Decimal.credit_entries: integer.credit_amount: Decimal.final_balance: Decimal.currency: string in ISO-4217 (number).
Package: norma43utils
Norma43 UtilsPython cli that reads anorma43file and transforms it to another format.
The current options are:Append to a google spreadsheetTransform to CSV (not yet implemented)How to install it:From PIP:pipinstallnorma43utilsThen, create a  OAUTH2 client credentials filecredentials.jsonto use the google API from there:Google Developers consoleCopy the credentials file to the following file path:mkdir-p$HOME/.norma43togooglespreadsheet/google/&&cpcredentials.json$HOME/.norma43togooglespreadsheet/google/How to use itThe PIP package creates and executable that is included in you path. Just use the CLIusage:norma43utils[-h]input{google}output{EN,ES}Readsanorma43formatteddocument,convertsitanduploadsittoGoogle
Spreadsheets.

positionalarguments:inputnorma43inputfilepath{google}FormattooutputtheresultoutputGooglespreadsheetdocumentid{EN,ES}Dateformat(EN/ES)optionalarguments:-h,--helpshowthishelpmessageandexitFor instance:norma43utils movements.n43 google document_id EN
Package: normal-api.py
Normal_API.pyAn Easy-To-Use Wrapper for the Normal APIRequirementsPython 3.6 or aboveaiohttp (python3 -m pip install -U aiohttp)InstallationInstall the package by doing one of the following commands:Using pip (recommended):pip install normal_api.py -Upython -m pip install normal_api.py -UDocumentationSee the full and detaileddocs hereLinksAPI|Changelogs|Examples|Github|PyPiMade byThis wrapper is made bySoheab_#6240(150665783268212746), DM me on Discord or join my discord
serverherefor anything related to this wrapper.Join Normal API's discord serverhereto suggest or report anything on the API.
Package: normal-corner
normal_cornerThis code produces a corner plot for analytical multi-dimensional Gaussian distribution, using covariance matrix and mean matrix. It also allows us to plot another distribution, with reduced dimensionality, on top. I.e. a distribution for a case where we fixed one variable.See demo.py for examples.InstallationOption 1:pip install normal_cornerOption 2:python setup.py installin cloned directoryDocumentationThe main component is function normal_corner inside a normal_corner package.
Below is a description of inputs and outputs.Output:Matplotlib figure object with a corner plotMain input:covm: covariance matrix,numpy array, NxN.mean: mean matrix,numpy array, 1xN.varlabels: labels for plotting, 1xN,list of strin LaTex format, between ($$).Input for a second distribution on top:fixedvarindex: index of variable that we do not use (fix),int, starting from 0. If notNone, covm2 and mean2 must not beNone.fixedvarvalue: value of fixed variable,float. Leave None not to plot fixed value.newcovandnewmean: new covariance and mean matrices, same format, as above.Optional input:scale_factor: scale factor for plotting area,float, in sigma.diagnostic: an option to print out some diagnostic messages,bool.color: color for a main Normal distribution,str.color2: color for a secondary Normal distribution, with reduced dimensionality,str.
Package: normality
normality text cleanupNormality is a Python micro-package that contains a small set of text
normalization functions for easier re-use. These functions accept a
snippet of unicode or utf-8 encoded text and remove various classes
of characters, such as diacritics, punctuation etc. This is useful as
a preparation to further text analysis.WARNING: This library works much better when used in combination
withpyicu, a Python binding for the International Components for
Unicode C library. ICU provides much better text transliteration than
the defaulttext-unidecode.Example# coding: utf-8fromnormalityimportnormalize,slugify,collapse_spacestext=normalize('Nie wieder "Grüne Süppchen" kochen!')asserttext=='nie wieder grune suppchen kochen'slug=slugify('My first blog post!')assertslug=='my-first-blog-post'text='this\n\n\r\nhas\tlots of\nodd spacing.'assertcollapse_spaces(text)=='this has lots of odd spacing.'Licensenormalityis open source, licensed under a standard MIT license
(included in this repository asLICENSE).
Package: normalization-gan
Python library for text normalization for TTS input using gptInstallationpipinstallnormalization_ganUsagefromnormalization_ganimportNormalization# Create instance, provide openai_api_key as string to authenticatenormalization_obj=Normalization(OPENAI_API_KEY)sample_text="My phone number is 555-1234"# Use normalize_text methodnormalized_text=normalization_obj.normalize_text(sample_text)# Output string would look like : "My phone number is five five five one two three four."