Saravanan666/pypi-org huggingface dataset:
Package: phoneinfopy
PhoneInfopyPhoneInfopy is a python tool to directly make request to Truecaller API's and get response. This module will allow you to register your number, validate OTP while registering and search information about a phone number.Table to ContentsPhoneInfoPyRequirementsCommand Line UsageInstallationLoginSearch NumberModule usageInstallationRegisterValidate OTPSearch phone numberRequirementsTo use PhoneInfopy module you need below pre requirements.valid mobile numberpythontruecaller auth token [This token will get by login/register process]Command Line UsageYou can install PhoneInfopy package using pipphoneinfopy -h [--help]for helpphoneinfopy -l [--login]for login [Need to mention country code]phoneinfopy -c [--code]for country codephoneinfopy -i [--info]for search mobile number [Need to mention country code]InstallationpipinstallphoneinfopyLoginpython3-mphoneinfopy.cli-c<countryCode>-l<phoneNumber>Examplepython3-mphoneinfopy.cli-c+91-l98xxxxxxxxsearch-NumberYou can search phone number by using below commandpython3-mphoneinfo.cli-c+91-i98xxxxxxxxModule-usageInstallYou can install the phoneinfopy moudle using pip:pipinstallphoneinfopyRegisterfromphoneinfopyimportregister_phone_numbernumber="+9198xxxxxxxx"response=register_phone_number(number)# register_phone_number method will return json object# example:# {#   status : bool,#   message: str#   requestId: str# }Validate-OTP:Once you get success response from register method next you need to verify the OTP to get access token.fromphoneinfopyimportvalidate_OTPnumber="+9198xxxxxxxx"OTP="123456"requestId="<you get this ID while register process>"response=validate_OTP(number,OTP,requestId)# validate_OTP method will return json object# {#   status: bool#   message: str#   access_token: str  [If OTP validatino is success]# }Search-numberYou need to get user information using phone number you can use like this..fromphoneinfopyimportget_phone_infotarget_number="98xxxxxxxx"country_code="+91"access_token="a10--******"["you get this token while validating OTP"]response=get_phone_info(target_number,country_code,access_token)# get_phone_info will return json object#{#   status: bool#   message: str#   data: object [if user info found]# }ContributionContributions to the phoneinfopy package are welcome!...
If you faced any issue or you have good idea to improve please open a issue or submit a pull request.Let's Connect:InstagramLinkedInYoutube
Package: phone-iso3166
Small project to map an E.164 (international) phone number to the
ISO-3166-1 alpha 2 (two letter) country code, associated with that number.Also provides mapping for E.212 (mobile network codes, mcc+mnc) to the country.The package has no dependencies, and works on Python 3.6+ and PyPy 3.6+.Simple UsageTo simply get a country code from a phone number or mcc, mnc.>>>fromphone_iso3166.countryimport*>>>phone_country(45)'DK'>>>phone_country('+1 202-456-1111')'US'>>>phone_country(14412921234)'BM'>>>network_country(238,1)'DK'Network names and codesIf you want more detailed information about the networks, such as the operator
name use the functions inphone_iso3166.network.>>>fromphone_iso3166.networkimport*>>>network(238,1)('DK', 'TDC Mobil')>>>country_networks('DK')[(238, 1, 'TDC Mobil'), (238, 2, 'Telenor'), (238, 3, 'MIGway A/S'),
 (238, 4, 'NextGen Mobile Ltd T/A CardBoardFish'), (238, 6, 'Hi3G'),
 (238, 8, 'Nordisk Mobiltelefon Danmark A/S'), (238, 10, 'TDC Mobil'),
 (238, 43, 'MobiWeb Limited'), (238, 12, 'Lycamobile Denmark'),
 (238, 13, 'Compatel Limited'), (238, 77, 'Tele2'), (238, 20, 'Telia'),
 (238, 66, 'TT-Netvaerket P/S'), (238, 28, 'CoolTEL'),
 (238, 30, 'Interactive Digital Media GmbH')]More informationIf want more information, you can easily use the country code with other python
packages such aspycountry.>>>fromphone_iso3166.countryimportphone_country>>>importpycountry>>>phone='+55 21 3814-2121'>>>c=pycountry.countries.get(alpha_2=phone_country(phone))>>>c.name'Brazil'>>>c.official_name'Federative Republic of Brazil'This package makes no attempt to understand the various input options for
phone numbers, and assumes an international phone number. If you deal in fuzzy
inputs, tryphonenumbers.>>>fromphone_iso3166.countryimportphone_country>>>importphonenumbers>>>importpycountry>>>local=phonenumbers.parse("020 8366 1177","GB")>>>phonenumbers.format_number(local,phonenumbers.PhoneNumberFormat.E164)'+442083661177'>>>cc=phone_country(str(local.country_code)+str(local.national_number))>>>uk=pycountry.countries.get(alpha_2=cc)>>>uk.name'United Kingdom'>>>uk.official_name'United Kingdom of Great Britain and Northern Ireland'>>>wh=phonenumbers.parse("0012024561111","GB")>>>cc_wh=phone_country(str(wh.country_code)+str(wh.national_number))>>>cc_wh'US'
Package: phonemeRecognizerWrapper
phonemeRecognizerWrapperPackage containing one wrapper script over the Allosaurus phoneme recognition library, designed for passing the Allosaurus output data to MATLAB scripts for further analysis.InstallationInstall Python 3To see if Python is installed, usepy --versionin command linepipis automatically included in the Python installation, but to check or update the pip version use:py -m ensurepip --upgradeInstall this packageFrom command line (assuming user has already installed python and pip):pip install phonemeRecognizerWrapperThis should also automatically install all dependent packages.UsageThis script uses theAllosaurusphoneme recognition package to extract phonemic content from audio files of human speech. This script acts as a wrapper over the allosaurus package for improved formatting and piping of data to MATLAB scripts for analysis (e.g. vowel formant extraction).Command structurepy -m phonemeRecognizerWrapper.recognize LANGUAGE_CODE FILES EMIT_PROBRequired Arguments:LANGUAGE_CODEThree characters long language code supported by the Allosaurus library. For the list of available languages, use command:py -m allosaurus.bin.list_langTo display the phonetic inventory (list of phonemes) for a specific language, use:py -m allosaurus.bin.list_phone [--lang <language name>]Seeherefor more info.Example options:"ipa"- uses the whole available phonetic inventory for recognition (less accurate)"deu"- german"gsw"- swiss german"fra"- french"eng"- englishFILESAbsolute path to a temp .txt file containing semicolon delimited text string of absolute paths to all files meant for recognition. Surround the string with apostrophes ("") if any of the paths contains spaces.Temp file contents example:"C:\sounds\sound1.wav;C:\sounds\sound2.wav"Optional Arguments:EMIT_PROBAllosaurus setting that determines the phoneme emission rate of the underlying model. Higher number tells the model to produce more phonemes, smaller number vice versa.Center is at1.0, and optimal range that produces comprehensive outputs is0.8 - 1.5.If omitted, default value of 1.5 is used.ExamplesExample usage from command line:py -m phonemeRecognizerWrapper.recognize eng "C:\sounds\sound.wav;C:\sounds\sound2.wav" 1.0Example usage from MATLAB via the[status, result] = system(command)function:command = 'py -m phonemeRecognizerWrapper.recognize eng "C:\sounds\sound.wav;C:\sounds\sound2.wav" 1.0';It is also recommended to useset PYTHONIOENCODING=utf8before the python command to ensure proper text formantting via the standard output pipe.ContactsFor any questions, please email:petr.kryze@gmail.comAuthors: Petr Krýže @PetrKryze based on code from Vojtěch IllnerCTU Prague, FEE 2023
Package: phonemizer
TestsDocumentationReleaseCitationPhonemizer --foʊnmaɪzɚThe phonemizer allows simple phonemization of words and texts in many languages.Provides both thephonemizecommand-line tool and the Python functionphonemizer.phonemize. Seethe package's documentation.It is based on four backends:espeak,espeak-mbrola,festivalandsegments. The backends have different properties and capabilities resumed
in table below. The backend choice is let to the user.espeak-ngis a Text-to-Speech
software supporting a lot of languages and IPA (International Phonetic
Alphabet) output.espeak-ng-mbrolauses the SAMPA phonetic alphabet instead of IPA but does not preserve word
boundaries.festivalis another
Tex-to-Speech engine. Its phonemizer backend currently supports only
American English. It uses acustom phoneset, but it
allows tokenization at the syllable level.segmentsis a Unicode tokenizer that
build a phonemization from a grapheme to phoneme mapping provided as a file
by the user.espeakespeak-mbrolafestivalsegmentsphone setIPASAMPAcustomuser definedsupported languages100+35US Englishuser definedprocessing speedfastslowvery slowfastphone tokens:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:syllable tokens:x::x::heavy_check_mark::x:word tokens:heavy_check_mark::x::heavy_check_mark::heavy_check_mark:punctuation preservation:heavy_check_mark::x::heavy_check_mark::heavy_check_mark:stressed phones:heavy_check_mark::x::x::x:tie:heavy_check_mark::x::x::x:CitationTo refenrece thephonemizerin your own work, please cite the followingJOSS
paper.@article{Bernard2021,doi={10.21105/joss.03958},url={https://doi.org/10.21105/joss.03958},year={2021},publisher={The Open Journal},volume={6},number={68},pages={3958},author={Mathieu Bernard and Hadrien Titeux},title={Phonemizer: Text to Phones Transcription for Multiple Languages in Python},journal={Journal of Open Source Software}}LicenceCopyright 2015-2021 Mathieu BernardThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, seehttp://www.gnu.org/licenses/.
Package: phonenumberchecker
gender=======================================Get gender from name and email addressWhat does it do?----------------Suppose you have someone's name and need to find out whether this person is a female (male). The name might come with an email address as it's often the case when you deal with customer records. This package finds the gender for you.Key Advantages--------------- Very simple to use- Accepts a single string or a list of strings as input- Relies on a dataset of 130,000+ unique names- Covers hypocorisms (English only at this time)- Makes use of a person’s email address (if available) via searching for names and grammatical gender words in the prefix- Doesn’t care if the input has bad formattingInstallation------------.. code-block:: console$ pip3 install genderQuickstart----------Import and initialise the GenderDetector class:.. code-block:: consolefrom gender import GenderDetectorgd = GenderDetector()Then use its *gender* method:.. code-block:: pycongd.gender('jaeden collins')Note that you can give it a string with some rubbish in it, like.. code-block:: pycongd.gender('dr.. arian ChiA ,%%%achia58@hotmail.com')Having an email address could make difference. Suppose that you want to figure out gender of someone whose description is.. code-block:: pyconcustomer_info = 'b w roberts -- roboking@yahoo.co.uk'Both the initials and surname don’t tell you whether this is a male or a female. However, the email prefix robo*king* does look like it’s probably a male because the word *king* always points to a male.Also note that you can feed a **list**  into the **gender** method in which case you will get a list of identified genders as an output:.. code-block:: pycongd.gender(['steve risotto', 'ana kowalski'])>>>['m', 'f']
Package: phone-number-generator
Number GeneratorTheNumber_generatorclass is a Python utility for generating random phone numbers with optional country codes. It provides flexibility in generating individual numbers or creating batches of random phone numbers. Additionally, it supports saving generated phone numbers to a text file.Table of ContentsInstallationUsageMethodsExamplesContributingLicenseInstallationTo use theNumber_generatorclass, follow these steps:Clone the repository:gitclonehttps://github.com/mosesoyediran/number-generator.git
Navigatetotheprojectdirectory:
bash
Copycodecdnumber-generator
UsetheNumber_generatorclassinyourPythonscriptsorprojects.
UsageImport the Number_generator class into your Python script and create an instance to generate random phone numbers. The class can also be used to save generated phone numbers to a text file.python
Copy code
from number_generator import Number_generatorCreate an instance of Number_generatorphone_generator = Number_generator(phone_ini="123", country="USA")Generate a random phone numberrandom_phone = phone_generator.gen_phone()
print("Generated Phone Number:", random_phone)Generate a list of random phone numbersmultiple_phones = phone_generator.gen_multiple_phones(5)
print("Generated Phone Numbers:", multiple_phones)Save generated phone numbers to a text filephone_generator.save_to_text_file(10, "generated_phone_numbers.txt")
Methodsinit(phone_ini=None, country=None)
Initializes a Number_generator object.phone_ini: Initial part of the generated phone number.
country: Country for which the phone number will be generated.
gen_phone()
Generates a random phone number based on specified criteria.search(country)
Searches for the international code (int_code) associated with the given country.country: Country for which the international code is sought.
gen_multiple_phones(num_phone_numbers)
Generates a list of random phone numbers.num_phone_numbers: The number of phone numbers to generate.
save_to_text_file(num_phone_numbers, filename)
Generates and saves a specified number of phone numbers to a text file.num_phone_numbers: The number of phone numbers to generate and save.
filename: The name of the file to which the phone numbers will be saved.
ExamplesFor more examples on how to use the Number_generator class, refer to the Examples directory in this repository.ContributingContributions are welcome! If you find a bug or have a suggestion, please open an issue.LicenseThis project is licensed under the MIT License.
Package: phonenumbers-jp
phonenumbers-jp-pyGet attribute information from Japanese domestic phone numbers.日本国内の電話番号から、種別や市外局番などの情報を取得します。License: MITInstallationpip3installphonenumbers-jp-UExamples>>>phonenumbers_jp.parse("0311111111")NumberInfo(parts=['03','1111','1111'],type='固定',subtype=None,message_area=NumberAndName(number='03',name='東京'),specified_carrier=None,callerid_delivery=None)>>>phonenumbers_jp.parse("0992000000")NumberInfo(parts=['099','200','0000'],type='固定',subtype=None,message_area=NumberAndName(number='099',name='鹿児島'),specified_carrier=None,callerid_delivery=None)>>>phonenumbers_jp.parse("1840992000000")NumberInfo(parts=['184','099','200','0000'],type='固定',subtype=None,message_area=NumberAndName(number='099',name='鹿児島'),specified_carrier=None,callerid_delivery='withhold')>>>phonenumbers_jp.parse("09011112222")NumberInfo(parts=['090','1111','2222'],type='携帯',subtype=None,message_area=None,specified_carrier=None,callerid_delivery=None)>>>phonenumbers_jp.parse("117")NumberInfo(parts=['117'],type='特番',subtype='時報',message_area=None,specified_carrier=None,callerid_delivery=None)>>>phonenumbers_jp.parse("05012345678")NumberInfo(parts=['050','1234','5678'],type='IP',subtype=None,message_area=None,specified_carrier=None,callerid_delivery=None)>>>phonenumbers_jp.parse("00630111111111")NumberInfo(parts=['0063','011','111','1111'],type='固定',subtype=None,message_area=NumberAndName(number='011',name='札幌'),specified_carrier=NumberAndName(number='0063',name='ソフトバンク株式会社'),callerid_delivery=None)>>>phonenumbers_jp.parse("0120444444")NumberInfo(parts=['0120','444','444'],type='フリーダイヤル',subtype=None,message_area=None,specified_carrier=None,callerid_delivery=None)APINumberTypes=Literal["特番","固定","携帯","IP","M2M","国際電話","国外","フリーダイヤル","FMC","ポケベル","災害募金サービス","ナビダイヤル"]@dataclassclassNumberAndName:number:strname:str@dataclassclassNumberInfo:parts:List[str]=field(default_factory=list)# 分解された電話番号type:Optional[NumberTypes]=None# 種別subtype:Optional[str]=None# 特番の内容message_area:Optional[NumberAndName]=None# メッセージエリア (市外局番)specified_carrier:Optional[NumberAndName]=None# 事業者指定番号callerid_delivery:Optional[Literal["withhold","provide"]]=None# 非通知・通知defparse(number:str)->NumberInfo:...
Package: phone-number-validator
Phone Number ValidatorThe Phone Number Validator package provides a simple way to validate phone numbers using the NumLookupAPI.InstallationYou can install the package using pip:pipinstallphone-number-validatorUsageTo use the package, you must first obtain an API key from NumLookupAPI. Once you have an API key, you can create a PhoneNumberValidator instance and use its validate method to validate a phone number:fromphone_number_validator.validatorimportPhoneNumberValidatorvalidator=PhoneNumberValidator(api_key="YOUR_API_KEY")# Example 1: Valid phone number without country codeis_valid1=validator.validate("+16502530000")print(is_valid1)# Returns True# Example 2: Valid phone number with country codeis_valid2=validator.validate("6502530000","US")print(is_valid2)# Returns True# Example 3: Invalid phone number without country codeis_valid3=validator.validate("+11234567890")print(is_valid3)# Returns False# Example 4: Invalid phone number with country codeis_valid4=validator.validate("1234567890","US")print(is_valid4)# Returns FalseThe validate method takes a phone number and an optional country code as arguments. If the phone number is valid, the method returns True. If the phone number is invalid, the method returns False.If the API call fails for any reason, the method raises an HTTPError exception.
Package: phonescrape
phonescrapeUses BeautifulSoup and RegEx to pull and parse data directly form Cisco IP Phonesinput a phone ip addressfromphonescrapeimportscrapephones=['10.131.202.127','10.131.202.127']forphoneinphones:details=scrape.allDetails(phone)print(details["sn"])and get back a dict of information:{"sn":"FCH2053D2BS","firmware":"sip88xx.12-0-1-8","dn":"52807","model":"CP-8851","kem1":"Key expansion module 2","kem2":"Hardware revision","mac_address":"F8A5C59E0F1C","hostname":"SEPF8A5C59E0F1C","domain_name":"DHCP server","dhcp_server":"10.131.202.1","dhcp":"Yes","ip_address":"10.131.202.127","subnetmask":"255.255.255.0","gateway":"10.131.202.1","dns1":"8.8.8.8","dns2":"DNS server 3","alt_tftp":"Yes","tftp1":"10.144.200.10","tftp2":"DHCP address released","op_vlan":"Admin VLAN ID","admin_vlan":"CUCM server1","cucm1":"10.144.200.10  Active","cucm2":"","cucm3":"CUCM server4","info_url":"http://10.144.200.10:8443/ccmcip/GetTelecasterHelpText.jsp","dir_url":"http://10.144.200.10:8443/ccmcip/xmldirectory.jsp","msg_url":"Services URL","svc_url":"http://10.144.200.10:8443/ccmcip/getservicesmenu.jsp","idle_url":"Idle URL time","info_url_time":"0","proxy_url":"","auth_url":"http://10.144.200.10:8080/ccmcip/authenticate.jsp","tvs":"cucm.car.pnslabs.com","status":["11:39:03am 10/09/18 ITL installed","11:39:04am 10/09/18 SEPF8A5C59E0F1C.cnf.xml.sgn(HTTP)","11:39:05am 10/09/18 VPN not configured"]}
Package: phonesensors
PhoneSensorsphonesensorsis a Python package to aid with receiving various sensor data from phones in a quick and easy way. It is
meant to be used in conjunction with theSensorStreamerapp for Android devices, but support for any other app streaming sensor data over a TCP socket can be implemented
with ease by subclassing theBaseParserinparsers.py.How to installpip install phonesensorsHow to useOpen the SensorStreamer app and make it a TCP server emitting JSON packets on a port of your choice. Port 5000 is used
for this example. Find out the IP address of your device (e.g. 192.168.1.1). The following code snippet will print
the sensor data being streamed from your device:from phonesensors import SensorStreamerClient, Apps
with SensorStreamerClient("192.168.1.1", 5000, Apps.SENSORSTREAMER) as client:
  for data in client:
    print(data)Data formatdatain the above example code snippet is aSensorDataCollectioninstance. You can obtain the specific sensor data
by accessing its attributes. The sensor data and timestamps are returned as numpy arrays:acceleration_values = packet.acc.values
acceleration_timestamps = packet.acc.timestamps
proximity_values = packet.prox.values
proximity_timestamps = packet.prox.timestampsData from different sources may have different number of elements due to differences in sampling frequency. For example,acceleration_values, a 3D vector, may have 4 samples and thus be a (4,3) array. Whileproximity_values, a 1D scalar,
may only have one sample and thus be a (1,) array.
Package: phonetic2bengali
==============phonetic2bengali==============convert bengali text written in english to bengali while keeping english ony textLicense=======Copyright [2018] [Subrata Sarkar]Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.Usage=====from phonetic2bengali import phonetic2bengalifuncphonetic2bengali.conv("Folder zip korbo kichukhon por")
Package: phonetic-alphabet
Phonetic AlphabetA Python package for converting characters and digits to phonetic alphabet equivalents.InstallationInstallation can be done with the Python Package Index (PyPI).pipinstallphonetic-alphabetExamplesConverting an aircraft call-sign:importphonetic_alphabetasalphacall_sign='CF-ABC'response=alpha.read(call_sign)>>>CHARLIEFOXTROT-ALPHABRAVOCHARLIEConverting digits:importphonetic_alphabetasalphaheading=290response=alpha.read(heading)>>>TWONINERZERO
Package: phonetics
The phonetics module computes the phonetic key of a string using different algorithms.SoundexNYSISSMetaphoneDouble MetaphoneTable of contentsInstallationLatest PyPI stable releaseLatest development release on githubRunning testsUsageModule ContentsContributionsLICENCEAuthorsInstallationLatest PyPI stable releasepipinstallphoneticsLatest development release on githubPull and install in the current directory:pipinstall-egit+https://github.com/Zack--/phonetics.git@master#egg=phoneticsRunning testsByDuncan McGreggor$python-munittestdiscoverphonetics/tests/-vOrnosetests--with-coverage--cover-package=phoneticsUsage>>>importphonetics>>>phonetics.dmetaphone('Danger')('TNJR','TNKR')Module ContentsThephoneticsmodule defines the following function:phonetics.soundex(source[,size=4])Use the soundex algorithm to create the phonetic key of thesourcestring.phonetics.nysiis(source)Use the New York State Identification and Intelligence System to create the phonetic key of thesourcestring.phonetics.metaphone(source)Use the metaphone algorithm to create the phonetic key of thesourcestring.Based onLawrence Philips’ Metaphone Algorithm.phonetics.dmetaphone(source)Use the double methaphone algorithm to create the phonetic key of thesourcestring.Based onLawrence Philips’ Metaphone Algorithm.ContributionsAll source code is hosted onGitHub.
Contributions are welcome.See theCONTRIBUTINGfile for more information.LICENCEOpen Source :AuthorsRanked by contributions.Zack Dibe (Zack–) **Original author