Saravanan666/pypi-org huggingface dataset:
Package: number-recognition
Number recognitionRecognize numbers from a28 x 28image using neural networksUsageThis is an example of a simple usage ofnumber-recognitionNOTE: This number recognizer uses images with size 28 x 28 pixes, you can resize it by using an external library like:PILfromnumber_recognitionimportNumberRecognizern=NumberRecognizer()n.init()# create a modeln.load()# load the modelnum=n.recognize('path/to/image_28x28.png')# recognise the imageprint(f"the number is{num}")LICENSEThe MIT License (MIT)

Copyright (c) 2021 mauro-balades <mauro.balades@tutanota.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Package: number-recognizer
===============================Number Recognizer===============================.. image:: https://badge.fury.io/py/number-recognizer.svg:target: https://pypi.python.org/pypi/number-recognizer.. image:: https://readthedocs.org/projects/number-recognizer/badge/?version=latest:target: https://number-recognizer.readthedocs.io/en/latest/?badge=latest:alt: Documentation StatusA software for the recognition of handwritten numbers.* Free software: BSD license* Documentation: http://number-recognizer.readthedocs.io/en/latest/Requirements------------* OpenCV* TensorFlow* Numpy* Pandas* ClickInstallation------------Install OpenCV_ and TensorFlow_ then and run::$ pip install number-recognizer.. _OpenCV: https://github.com/milq/scripts-ubuntu-debian/blob/master/install-opencv.sh.. _TensorFlow: https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#pip-installationUsage-----Run::$ recognizerWrite a number on a clean peace of paper. Position it inside the green box in a way that the number is focused. Press **r** to recognize the number. Press **q** to quit the program.Credits---------Tools used in rendering this package:* Cookiecutter_* `cookiecutter-pypackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-pypackage`: https://github.com/condereis/cookiecutter-pypackage=======History=======0.1.0 (2016-08-12)------------------* First release on PyPI.0.1.1 (2016-08-12)------------------* Import fix.* Font changes.0.1.2 and 0.1.3 (2016-08-12)-------------------------* Model location fix.0.1.4 and 0.1.5 (2016-08-13)------------------* MANIFEST fix* Absolut path to model
Package: numbers2words-greek
Numbers2Words GreekFeaturesThis repository contains code for converting converting numbers
to words (e.g. 10 -> δέκα) up until10^13 - 1(1 trillion minus one).Convert numbers to greek words.Support for ordinals.Support for certain time formats.Installation:You can installNumbers2Words GreekviapipfromPyPI:$pipinstallNumbers2Words-GreekIf usingpoetry, then you can dopoetry add Numbers2Words-Greek.To install this repository locally, in editable mode, do the following:git clone https://github.com/geoph9/Numbers2Words-Greek.git
cd Numbers2Words-Greek
pip install -e .If no error occurs then you are fine. To make sure, you may run:python -c "import num2word".UsageThenumbers2words.pyscript:This script contains functionality to convert numbers to their
corresponding words in Greek. It only handles positive numbers
(you can easily change it to handle negative ones) and can also
handle decimals (only if the decimal part is separated using ","
instead of ".") and hours (e.g. 2:30 -> δύο και μισή). It is
important to note that this algorithm does not take into account
the gender of the noun following each number.
Also, the numbers will be converted as is and there isnopost-processing like "2.5 ευρώ" -> "δυόμιση ευρώ" (the output
will be "δύο κόμμα πέντε ευρώ").If you only need to convert numbers to words then you may use this
script as described below:python -m num2word [--test-word <<WORD>>] [--path <<PATH>>]  [--extension .lab] [--out-path]Arguments:-tor--test-word: Use this only for testing. Put a word or
number after it and check the result.
E.g.python -m num2word -t 150should printεκατόν πενήντα.-por--path: Provide a valid path. The path must be either a text file
or a directory containing many files (the extension of these files is defined
by the-eor--extensionoption, defaults to.txt). Cases:Directory: Inside this directory there needs to be multiple
text files which you want to convert. The words inside the file will
not be change and only the numbers will be replaced by their
corresponding words.File: If you provide a file then the same thing will happen but
just for this file.-eor--extension: Use this to change the extension of the text
files you have provided in--path. This only matters if you have
provided a directory.Example:# num2word is the package and numbers2words.py is the script.
python -m num2word --path /home/user/data/transcriptions \
                   --extension .txtThe above will read all the.txtfiles inside thetranscriptionsdirectory and will change the numbers to their corresponding greek words.Future Work:Handle fractions innumbers2words. E.g. Convert "1/10" to "ένα δέκατο".Handle time input innumbers2words. E.g. Convert "11:20" to "έντεκα και είκοσι"ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Numbers2Words Greekis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: numbersai
Spelling words like AIThis project is inspired from a popular meme which consisted of will AI systems count numbers. For eg:1999 - Nineteen Ninty Nine1888 - Eighteen Eighty Eight1111 - Eleven Eleven,No guys, AI is more cooler. It's  =>Oneteen Onety OneThis actually is one of the Rules of Machine Learning, ieRule #7: Turn heuristics into features, or handle them externally.Source
Package: numbers-almost-equal
Checks if 2 numbers (int) are almost equalfromnumbers_almost_equalimport(are_numbers_equal,are_numbers_equal_diff_0_00000001,are_numbers_equal_diff_0_0000001,are_numbers_equal_diff_0_000001,are_numbers_equal_diff_0_00001,are_numbers_equal_diff_0_0001,are_numbers_equal_diff_0_001,are_numbers_equal_diff_0_01,are_numbers_equal_diff_0_1,are_numbers_equal_diff_10,are_numbers_equal_diff_100,are_numbers_equal_diff_1000,are_numbers_equal_diff_10000,are_numbers_equal_diff_100000,are_numbers_equal_diff_1000000,are_numbers_equal_diff_10000000,are_numbers_equal_diff_100000000,)are_numbers_equal_diff_0_1(number1=0.1,number2=0.2)=Trueare_numbers_equal_diff_0_1(number1=0.1,number2=2)=Falseare_numbers_equal_diff_0_01(number1=0.01,number2=0.02)=Trueare_numbers_equal_diff_0_01(number1=0.01,number2=0.2)=Falseare_numbers_equal_diff_0_001(number1=0.001,number2=0.002)=Trueare_numbers_equal_diff_0_001(number1=0.001,number2=0.02)=Falseare_numbers_equal_diff_0_0001(number1=0.0001,number2=0.0002)=Trueare_numbers_equal_diff_0_0001(number1=0.0001,number2=0.002)=Falseare_numbers_equal_diff_0_00001(number1=0.00001,number2=0.00002)=Trueare_numbers_equal_diff_0_00001(number1=0.00001,number2=0.0002)=Falseare_numbers_equal_diff_0_000001(number1=0.000001,number2=0.000002)=Trueare_numbers_equal_diff_0_000001(number1=0.000001,number2=0.00002)=Falseare_numbers_equal_diff_0_0000001(number1=0.0000001,number2=0.0000002)=Trueare_numbers_equal_diff_0_0000001(number1=0.0000001,number2=0.000002)=Falseare_numbers_equal_diff_0_00000001(number1=0.00000001,number2=0.00000002)=Trueare_numbers_equal_diff_0_00000001(number1=0.00000001,number2=0.0000002)=Falseare_numbers_equal_diff_10(number1=10,number2=11)=Trueare_numbers_equal_diff_10(number1=10,number2=20)=Falseare_numbers_equal_diff_100(number1=100,number2=110)=Trueare_numbers_equal_diff_100(number1=100,number2=200)=Falseare_numbers_equal_diff_1000(number1=1000,number2=1100)=Trueare_numbers_equal_diff_1000(number1=1000,number2=2000)=Falseare_numbers_equal_diff_10000(number1=10000,number2=11000)=Trueare_numbers_equal_diff_10000(number1=10000,number2=20000)=Falseare_numbers_equal_diff_100000(number1=100000,number2=110000)=Trueare_numbers_equal_diff_100000(number1=100000,number2=200000)=Falseare_numbers_equal_diff_1000000(number1=1000000,number2=1100000)=Trueare_numbers_equal_diff_1000000(number1=1000000,number2=2000000)=Falseare_numbers_equal_diff_10000000(number1=10000000,number2=11000000)=Trueare_numbers_equal_diff_10000000(number1=10000000,number2=20000000)=Falseare_numbers_equal_diff_100000000(number1=100000000,number2=110000000)=Trueare_numbers_equal_diff_100000000(number1=100000000,number2=200000000)=False
Package: numbers-c2pa
numbers-c2paSetupInstall Rust$curl--proto'=https'--tlsv1.2-sSfhttps://sh.rustup.rs|shInstall c2patool$cargoinstallc2patoolInstall numbers-c2pa$ python3 -m pip install git+https://github.com/numbersprotocol/numbers-c2pa.gitUsageC2PA Injectionfromdatetimeimportdatetimefromnumbers_c2paimportcreate_c2pa_manifest,inject_fileif__name__=='__main__':withopen('examples/es256_private.key')asf:private_key=f.read()withopen('examples/es256_certs.pem')asf:sign_cert=f.read()manifest=create_c2pa_manifest(nid='this is nid',creator_public_key='this is creator public key',asset_hash='this is sha256hash',date_created=datetime.now(),location_created='123.123, 45.45',date_captured=None,)inject_file('examples/numbers.png',manifest=manifest,private_key=private_key,sign_cert=sign_cert,)# examples/numbers-c2pa.png will be created# Upload file to https://verify.contentauthenticity.org/inspect to view C2PA dataRead C2PA datafromnumbers_c2paimportread_c2pa_fileif__name__=='__main__':c2pa_json=read_c2pa_file('examples/numbers-c2pa.png')print(c2pa_json)Create self-signed certificate with intermediate CAAccording toc2patoolreadme:Both the private_key and sign_cert must be in PEM format. The sign_cert must contain a PEM certificate chain starting with the end-entity certificate used to sign the claim ending with the intermediate certificate before the root CA certificate. See the sample folder for example certificates.Using a intermediate CA certificate is required.Updated stepsCreate end-entity and intermediate private keysopensslecparam-genkey-nameprime256v1-noout-outintermediate_ca.key
opensslecparam-genkey-nameprime256v1-noout-outend_entity.keyCreate intermediate certopensslreq-x509-new-keyintermediate_ca.key-outintermediate_ca.crt-subj"/CN=Numbers Intermediate CA"-days365-sha256Createend_entity_csr.conffile[ req ]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = v3_req
distinguished_name = dn

[ dn ]
C = US
ST = California
L = San Fransisco
O = Numbers Protocol
OU = Numbers Protocol
CN = Numbers Protocol

[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = timeStamping
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = numbersprotocol.io
DNS.2 = www.numbersprotocol.ioCreate end-entity CSRopensslreq-new-keyend_entity.key-outend_entity.csr-configend_entity_csr.confCreate end-entity certificateopensslx509-req-inend_entity.csr-CAintermediate_ca.crt-CAkeyintermediate_ca.key-outend_entity.crt-days365-CAcreateserial-extfileend_entity_csr.conf-extensionsv3_req-sha256Combine certificate chaincatend_entity.crtintermediate_ca.crt>certificate_chain.pem
Package: numbers_extractor
Extract numbers from a string and return a list of int.Installpip install numbers_extractororeasy_install numbers_extractorUsagenumbers_extractor(string[, multiple=True])stringmust be a text that contains zero, one or # numbers.
Ifmultipleis set to True (default) return a list of # numbers
that can be empty if no numbers are found. If False, return the first number found, or None.Example:>>> from numbers_extractor import numbers_extractor
>>> numbers_extractor("20 is 10 plus 10")
[20, 10, 10]
>>> numbers_extractor("20 is 10 plus 10", multiple=False)
20
>>> numbers_extractor("no numbers here")
[]
>>> numbers_extractor("no numbers here", multiple=False)
>>>
Package: number-spacy
Number spaCyNumber spaCy is a custom spaCy pipeline component that enhances the identification of number entities in text and fetches the parsed numeric values using spaCy's token extensions. It uses RegEx to identify number entities written in words and then leverages theword2numberlibrary to convert those words into structured numeric data. The output numeric value is stored in a custom entity extension:._.number.This lightweight component can be seamlessly added to an existing spaCy pipeline or integrated into a blank model. If using within an existing spaCy pipeline, ensure to insert it before the NER model.InstallationTo install Number spaCy, execute:pipinstallnumber-spacyUsageIntegrating the Component into your spaCy PipelineBegin by importing thefind_numberscomponent and then integrating it into your spaCy pipeline:importspacyfromnumber_spacyimportfind_numbers# Initialize your preferred spaCy modelnlp=spacy.blank('en')# Integrate the component into the pipelinenlp.add_pipe('find_numbers')Text Processing with the PipelinePost the component addition, you can process text as you typically would:doc=nlp("I have three apples. She gave me twenty-two more, and now I have twenty-five apples in total.")Retrieving the Parsed NumbersYou can loop through the entities in thedocand access the specific number extension:forentindoc.ents:ifent.label_=="NUMBER":print(f"Text:{ent.text}-> Parsed Number:{ent._.number}")This should output:Text: three -> Parsed Number: 3
Text: twenty-two -> Parsed Number: 22
Text: twenty-five -> Parsed Number: 25
Package: numbersystem
Number System Converternumbersystemis a Python 3.7+ package that simplifies the task of converts the decimal number in binary, octal, and hexadecimal or vice versa.The number system or the numeral system is the system of naming or representing numbers. There are various types of number systems in maths like binary, decimal, etc.ContentsDocumentationTypesInstallationQuick StartContributeDevelopers and MaintainersCopyrightTypesThere are various types of the number system in mathematics. The four most common number system types are:Decimal number system (Base- 10)Binary number system (Base- 2)Octal number system (Base-8)Hexadecimal number system (Base- 16)Versions and DependenciesPython 3.7+InstallationThere are one ways to install thenumbersystempackage:Installnumbersystemfrom PyPI (recommended):pip install numbersystemQuick StartTo start converting with help ofnumbersystem. The following workflow can be used:import numbersystem
numbersystem.decimalToBinary(25)
...............For more information about how to usenumbersystem, see our suggestedtemplate.ContributeWe welcome all kinds of contributions that improve the performance of the currently published pacakge.Developers and MaintainersThe developers began work to bringnumbersysteminto production in June 2020.numbersystemis actively maintained and there will be incremental improvements scheduled on a regular basis. The lead developers and maintainers are:Ritul Singh, GitHub:ritulsinghSee theProject Pagepage to get in touch with thenumbersystemteam.Copyrightnumbersystemis distributed under the MIT license. SeeLICENSEfor details.
Package: number_to_string
## ru_number_to_textПреобразует число в слова прописью и добавляетвалюту, которую можно задать(по умолчанию валюта рубли/копейки)## Как установить?pip install number_to_string## Пример использования:from number_to_string import get_string_by_numberstring = get_string_by_number(123)assert string == 'Сто двадцать три рубля 00 копеек'currency_main = ('тенге', 'тенге', 'тенге')currency_additional = ('тиын', 'тиына', 'тиынов')string = get_string_by_number(325,currency_main,currency_additional,)assert string == 'Триста двадцать пять тенге 00 тиынов'## Скоро:Добавление английского языка
Package: number-to-word
number-to-wordnumber-to-word is a Python library for converting numbers into their written English or Arabic word equivalents. This library is particularly useful for financial applications, where there is a need to convert numeric values into written text. It also supports currency names.FeaturesConvert numbers to written words in English or Arabic.Add currency names to the converted results.Lightweight and easy to integrate.InstallationYou can install number-to-word using pip:pipinstallnumber-to-wordUsageHere's a simple example of how to use number-to-word:fromnumbertowordimportNumberToWord# Convert a number to words in Englishprint(NumberToWord.to_word(123.5,'SYP',"English"))# Output: One Hundred Twenty Three Syrian Pounds and Fifty Piasters only.# Convert a number to words in Arabicprint(NumberToWord.to_word(123.5,'SYP',"Arabic"))# Output: فقط مائة و ثلاثة و عشرون ليرة سورية و خمسون قرشاً لا غير.ContributingContributions are welcome! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.LicensingThis project is licensed under MIT License.ContactFor any queries or feedback, please reach out to Adel Khayata.AcknowledgementsThanks to all the contributors who have helped to shape number-to-word.
Package: number-to-words
Given any number up to a vigintillion, this class will return the same number in wordsrequirementspython3running the testspython tests.pyusing custom testsImport NumbersToWords;
NumbersToWords("45781", add_and=False).words # for when the conjuntion "and" is unnecessary
NumbersToWords("45781", add_and=True).words # for when the conjuntion "and" is necessary

# replace 45781 with custom numbers as desired within the boundsAssumptionsThe class only works with strings. We are not handlingnegative integersdirect integers.You have to pass the number intended as a string
Of course a serializer can be used to validate this in production
if it was user input.
Package: number-transcription
Number TranscriptionMultilanguage library for conversion numbers to words descriptionInstallationpippipinstallnumber-transcriptionpoetrypoetryaddnumber-transcriptionfrom sourcegitclonehttps://github.com/OlegYurchik/number-transcription
pipinstall./number_transcriptionQuick Startimportnumber_transcriptionasnttext=nt.russian.number_to_words(100_011)print(text)# сто тысяч одинадцатьtext=nt.russian.number_to_words(1_015_000,unit=nt.russian.RussianUnitForm(one="ложка",any="ложки",many="ложек",gender=nt.enums.GenderEnum.FEMALE),)print(text)# один миллион пятнадцать тысяч ложек
Package: number_types
Various number types for PythonUsageTyped complexUse a complex number with different types for its real and imaginary
parts:>>>fromnumber_types.typed_compleximport*>>>z=DecimalComplex('0.2','0.1')>>>z+DecimalComplex('0.1','0.2')DecimalComplex(Decimal('0.3'),Decimal('0.3'))>>>z=complex(0.2,0.1)>>>z+complex(0.1,0.2)(0.30000000000000004+0.30000000000000004j)CoordinatesA class representing a (2D) coordinate.>>>fromnumber_typesimportCoordinate>>>Coordinate(0,1)+Coordinate(1,0)>>>Coordinate(1,1)>>>Coordinate(-1,0).to_polar()Coordinate(1.0,3.141592653589793,False)>>>Coordinate(-1,0).to_polar().equals(Coordinate(-1,0))True>>>Coordinate(3,4).to_polar()Coordinate(5.0,0.9272952180016122,False)>>>abs(Coordinate(3,4))5.0>>>Coordinate(3,4).conjugateCoordinate(3,-4)InstallingFromPyPI$pipinstallnumber_typesFrom source$gitclone'https://github.com/MitalAshok/number_types.git'$python./number_types/setup.pyinstall
Package: numberutilities
Este es un ejemplo simple de un paquete Python. Este paquete contiene dos funciones para el cálculo de números primos.La función isPrimoPy(num) devuelve si un número es primo o no. Esta función está escrita enteramente en Python.La función numPrimosPy(numero) devuelve una lista con los números primos desde 1 hasta el número introducido por el usuario. Esta función está escrita enteramente en Python.La función numPrimosR(num) imprime por consola todos los números primos desde 1 hasta el número introducido por el usuario. Función escrita con el paquete rpy2.
This program is free software: You can redistribute it and/or modify it under the terms of license by the Free Software Foundation, either version 3 of the License(at your option) any other version.
Package: number-utility
number-utilityIntroductionThe number-utility module makes it simple for you to do number manipulation and perform various operations on numbers.InstallationYou can install the module using pip as shown below.pipinstallnumber-utilityUsageConsider the following examples :fromnumber_utilityimport*num1=12num2=60print(gcd(num1,num2))#Output - 12fromnumber_utilityimport*start=2end=10print(generate_primes(start,end))#Output - [2, 3, 5, 7]TestingTo install number-utility, along with the tools you need to develop and run tests. Run the following command :$pipinstall-e.[dev]For running the tests, type the following command :py.testBugs/RequestsPlease use theGitHub issue trackerto submit bugs or request features.LicenseCopyright Vaidhyanathan S M, 2021Distributed under the terms of theMITlicense, number-utility is free and open source software.
Package: number-utils
number-utilsA library to perform various operations on prime numbers.Installationpipinstallnumber-utilsUsage>>>importnumber_utils>>>dir(number_utils)['__builtins__','__cached__','__doc__','__file__','__loader__','__name__','__package__','__path__','__spec__','are_mutually_prime','factor_pairs','factors','highest_power','is_prime','mutually_prime_factor_pairs','number_of_divisors','number_of_factor_pairs','number_of_mutually_prime_factor_pairs','prime_factorise','prime_factors','prime_over','prime_under','primes','primes_between','primes_under','sum_of_divisors']>>>>>># Examples>>>fromnumber_utilsimportis_prime,are_mutually_prime,prime_factorise>>>is_prime(101)True>>>are_mutually_prime(24,77)True>>>prime_factorise(21600,show=True)2^5*3^3*5^2[(2,5),(3,3),(5,2)]>>>>>>help(prime_factorise)Helponfunctionprime_factoriseinmodulenumber_utils.primes:prime_factorise(n,show=False)Primefactorisation.If`show`isTrue,printanexpressionoftheform:a^p*b^q*c^rwherea,b,c,etc.areprimefactorsofnandp,q,r,etc.aretheirpowers.Returnalistoftuplesofprimefactorandpower.>>>>>>help(number_utils.highest_power)Helponfunctionhighest_powerinmodulenumber_utils.primes:highest_power(m:int,n:int)Highestpowerofaprimeminn!Formula:Sumofgreatestintegerscontainedin(n/m^i),whereiis1,2,3,etc.
Package: numberwang
Numberwang.pyA utility to recreate the classic gameshow, Numberwang!What’s Numberwang..? Seethis YouTube video from the first episode.InstallationTo install simply type:$ pip install numberwangUsageSimply pass a sentence to thenumberwangcommand. The sentence must contain
a number:$ numberwang The square root of -1
That's Numberwang!If you don’t a response, it’s because the sentence isn’t Numberwang. In that
case, please try again.DevelopmentThe source code is hosted in GitHub. Please feel free to fork the repository.
Assuming you have Git installed you can download the code from the canonical
repository with the following command:$ git clone https://github.com/ntoll/numberwang.gitEnsure you have the correct dependencies for development installed by creating
a virtualenv and running:$ pip install -r requirements.txtThere is a Makefile that helps with most of the common workflows associated
with development. Typingmakeon its own will list the options.Release History0.0.1Initial release for educational purposes.100% test coverage.Minimal documentation.