Saravanan666/pypi-org huggingface dataset:
Package: text-explore
Text_ExploreA Python Library to perform Exploratory Data Analysis on TextInstall Packagepipinstalltext_exploreUsing PackageAccess from class# Access from a single classfromtext_exploreimportTextExploretext="""US actor Jussie Smollett has been sentenced to 150 days in jail after a jury found he lied to police about being the victim of a hate crime.The former Empire star, 39, was found guilty in December of five charges of felony disorderly conduct after making false reports about the hoax attack.The sentence also includes 30 months of probation and $145,000 (£110,000) in restitution and fines.Following the sentence, Smollett said: "I did not do this!"The trial stemmed from an incident three years ago when Smollett said he was attacked by two assailants.The actor, who is black and gay, said the attackers shouted slurs at him and a Trump slogan, dumped a "chemical substance" on him and tied a noose around his neck while he was walking late at night in January 2019."""doc=TextExplore(text)# Count Number of Words in Textprint("Word Count:",doc.count_words())# Count Number of Characters in Textprint("Characters Count:",doc.count_chars())# Count Number of Stopwords in Textprint("Stopwords Count",doc.count_stopwords())# Count Number of Syllables in Textprint("Syllables Count:",doc.count_syllables())# Count Number of Sentences in Textprint("Sentences Count:",doc.count_sentences())# Flesch reading ease scoreprint("Flesch reading ease:",doc.flesch_reading_ease())# Flesch kincaid grade scoreprint("Flesch kincaid grade:",doc.flesch_kincaid_grade())Access individual functions# Access individual functionsfromtext_explore.countsimport(count_words,count_chars,count_stopwords,count_syllables,count_sentences,)fromtext_explore.readabilityimport(flesch_kincaid_grade,flesch_reading_ease)# Count Number of Words in Textprint("Word Count:",count_words(text))# Count Number of Characters in Textprint("Characters Count:",count_chars(text))# Count Number of Stopwords in Textprint("Stopwords Count",count_stopwords(text))# Count Number of Syllables in Textprint("Syllables Count:",count_syllables(text))# Count Number of Sentences in Textprint("Sentences Count:",count_sentences(text))# Flesch reading ease scoreprint("Flesch reading ease:",flesch_reading_ease(text))# Flesch kincaid grade scoreprint("Flesch kincaid grade:",flesch_kincaid_grade(text))
Package: text-extensions-for-pandas
Natural language processing support for Pandas DataFrames.Text Extensions for Pandas addsextension typesto Pandas DataFrames for representing natural
language data, plus a library of functions for working with these extension
types.FeaturesSpanArray: A Pandas extension type forspansof textConnect features with regions of a documentVisualize the internal data of your NLP applicationAnalyze the accuracy of your modelsCombine the results of multiple modelsTensorArray: A Pandas extension type for tensorsRepresent BERT embeddings in a Pandas seriesStore logits and other feature vectors in a Pandas seriesStore an entire time series in each cell of a Pandas seriesPandas front-ends for popular NLP toolkitsSpaCyTransformersIBM Watson Natural Language UnderstandingIBM Watson Discovry Table UnderstandingDocumentationFor examples of how to use the library, take a look at the notebooks inthis directory.API documentation can be found athttps://text-extensions-for-pandas.readthedocs.io/en/latest/Source CodeThe source code for Text Extensions for Pandas is available athttps://github.com/CODAIT/text-extensions-for-pandas.We welcome code and documentation contributions!  See theREADME filefor more information on contributing.
Package: text-extractor
Text ExtractorIntroductionInspired by python textract, this text_extractor package aims to provide users an quick and easy way to extract text from multiple different file formats into python for further.
It is also possible for more customized for extraction though using the extractors of specific file formats, or kwargs on the high level text_extraction function.from text_extractor import text_extraction

filepath = "mypdffile.pdf"

output_text = text_extraction(filepath)Currently Supported File FormatsDocument PDF (Not scanned or images)txt
Package: textfairy
textfairytextfairy converts your text to UTF-8. It does this by allowing some mistakes,
as long as the process is fast and easy to use.Highlights:Extremely easy to usePretty quickFree software under the MIT licenseCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-17)First release on PyPI.
Package: textfeature
TextFeaturetransforms unstructured text to feature vector using word2vec, lexicon and ...Directoriestest: This directory contains an jupyter Notebook to test and debug code easilyRequirementsThis library uses modules below:gensimnltknumpypandas... (more requirements is needed in future)Functionstext_w2v()...word_tokens:text_l2v()...word_tokens:lexicon_name:vector_size:
Package: textfeatures
Introduction: textfeaturesWhen we handle the text data, we always have concerns about the data features, pre-processing of data and more likely the predictions. To improve our model, it is important to understand the data and find the more interesting features in the data like hashtags, links and many more.What is textfeatures?It is a python package which helps you to extract the basic features from the text data such as hashtags, stopwords, numerics which will help you to understand the data and improve your model more effectively.Function structure:function_name(dataframe, ”text_column”, ”new_column”)dataframe:- name of dataframetext_column:- name of the column from which features are to be extracted.new_column:- new column derived by feature extraction from text_column.What will textfeatures serve you?1. word_count():-give the total words count present in text data.2. char_count():-give the characters count.3. avg_word_length():-give the average word length.4. stopwords_count():- give the stopwords count.5. stopwords():- extract the stopwords from the text data.6. hashtags_count():-give the hashtags count.7. hashtags():-extract the hashtags from text data.8. links_count():-give the embedded links count from text data.9. links():-extract the links from the text data.10. numeric_count():-give the numeric digits count.11. user_mentions_count():-give the user mentions count from text data.12. user_mentions():-extract the user mentions from text data.13. clean():-give the pre-processed data after removal for unnecessary material in text data.
Package: textfile
Wrapper functions of codes of text file operation that are very commonly seen.
By usingtextfile, readability of our program will be improve!Install>pipinstalltextfileVery basic usageCreate file and write text to it.>>>importtextfile>>>textfile.write("a.txt","any string value")Read text from text file.>>>importtextfile>>>textfile.read("a.txt")"any string value"Use casesWrite string to text file:textfile.write("somefile.txt","any string value")Read entire string from text file:textfile.read("somefile.txt")Replace string in text file:textfile.replace("somefile.txt", "replaced", "replacement")Append string to text file:textfile.append("somefile.txt", "text to append")Insert string to text file:textfile.insert("somefile.txt", "text to insert", line=10)Just a implementation of facade patterntextfilewraps python algorithms that are very commonly used
in the purpose of to more simplify basic operations.This is just a facade pattern.The side effect of simplify the interface of text file operation, gets less flexibility.
Further more, it becomes hard to do speed tuning.But I think that those are not a matter in almost all situations of our programming.We should pay more attention to code readability!I courage you to usetextfileas much as possible you can.
If you do so, the readability of your code will increase, and will suppress many bugs.Is this document written in strange English?Kenjimaru, the author of this document, I am Japanese and am not familiar to English.If you read this document, and find anything should be fixed, feel free to contact me,
and I will appreciate.
Package: text-file-reader
text-file-readerExactly what it sounds like.This is not meant for practical use. It began as a hackathon submission, but I missed the deadline, so now I'm finishing it to be happy. The theme of the hackathon was "Overengineered UI", so it's not meant to be easy to use.InstallationInstall with Gitgit clone https://github.com/stcejorPmodnar/ph-hackathon-2019Install with pipComing soonUsageStartupAs of right now, it's justpython[3] file-reader.py file.txtWithfile.txtbeing the file you want to read.You can include the flag-hif you want to see the helpscreen.InterfacePress ^e at any time to quit.^t - find in file^b - compile file in your choice of various languages.Use the arrow keys to move your cursor.
If you attempt to move it off the screen,
the file contents will scroll accordingly.You will get an error if your terminal window is too small to display any of the text.ContributeThough I wouldn't mind any pull requests, wait for the first stable release to contribute.RequirementsBecause of the compile option, this likely won't work on windows,
so I won't even bother to add stuff about installing windows-curses to the setup.py.It should in theory work on linux or any of its distros,
but I doubt it since I have little experience with the OS, and I haven't done any testing with it.You should have python 3.x installed, but I've yet to test it with anything lower than 3.7.4,
and I think there are some changes between python 3.6 and 3.7 in multiline string formatting,
which (as you can imagine) was very important to this project.
Package: textfiles
TextFiles v0.0.7A convenient Python API for working with the text files CSV, JSON, TXTThe library allows handling csv, txt and json files easily from within Python.Installationpip install textfilesHow to use:Import TextFile: Once you install the library you can import the TextFile class into your Python code. To do this, simply add the following line to your code:fromtextfiles.file_factoryimportTextFileUse TextFile: You can now use the TextFile class to create instances of CsvFile, TxtFile, and JsonFile classes. The factory has two methods:make_file_instance: This method creates an instance of the file class for an existing text file.make_file: This method creates a new file and a corresponding Python instance of it.To create an instance of a CsvFile, TxtFile, or JsonFile class, simply call the appropriate static method and pass in the necessary parameters. The factory will then return an instance of the appropriate class.Examples: Here are some examples of how to use TextFile:To create an instance of an existing file:file=TextFile.make_file_instance('csv','path/to/file.csv',has_header=True,delimiter=',')file=TextFile.make_file_instance('txt','path/to/file.txt')file=TextFile.make_file_instance('json','path/to/file.json')To create a new file:file=TextFile.make_file('csv','path/to/file.csv',['Header1','Header2'])file=TextFile.make_file('txt','path/to/file.txt')file=TextFile.make_file('json','path/to/file.json')Note - When creating a CSV file, it is mandatory to pass a header.Main functions:self.get_content()self.search()self.count()examples:CsvFile.update_cell()my_csv=CsvFile('/path/to/my/csv/file.csv')my_csv.update_cell(column=3,row=2,value='New content')JsonFile.search()withopen("example.json","w")asf:json.dump(f,{"State":"New York","cities":["New York","Albeny","New Paltz"]})my_json=JsonFile('/path/to/my/json/file.json')new=my_json.search("new")print(new)output:[{'State':'New York'},{'cities':[{'index[0]':'New York'},{'index[2]':'New Paltz'}]}]
Package: text-file-splitter
Text File SplitterPython module to split text file easy and fast, without compromising memory using big files.InstallationYou can install text-file-splitter by running the following command:pip install text-file-splitterOr you can download direct fromGithuband install it manually.UsageImport the module and initialise it.fromtext_files_splitterimportTextFilesSplitter,ListMetricssource_file='./src/test/files'file_name='test_csv.csv'max_size_file=10file_type='csv'metric_units=ListMetrics.MBoutput_directory='./output'include_header=Truefile_suffix='file_example'file_splitter=TextFilesSplitter(source_file,file_name,max_size_file,file_type,ListMetrics.MB,output_directory,include_header,file_suffix)files_splitted=file_splitter.get_file_splitted()The outcome ofget_file_splitted()is a list of dict with the following detailsfiles_splitted = [
    {
        "file_name": file_name,
        "path": output_directory,
        "file_size": file_size_in_bytes,
        "count": count
    }...
]Files compatibilitycsvTestTo run a test of the clone the repository and follow the instructionspip install -r requirements.txt
python -m unittestExpected Outcomethe time may vary depending on your machine performanceRan 1 test in 0.180s

OKList of test createdcsvRequirementsPython 3.4 or newerCode StandardsFollowing pylint standardsLicenseThe MIT License (MIT). Please seeLicense Filefor more information.ContributionsThanks toGorkafor all his contributions.
Package: textfilter
textfilterPython Boilerplate contains all the boilerplate you need to create a Python package.开源协议: MIT license在线文档:https://textfilter.readthedocs.io.功能说明TODO欢迎赞助This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-01-14)First release on PyPI.
Package: textflow
TextFlowFramework for Text Annotation.Quick DocumentationTextFlow is a minimalist interface for full text processing.Supported Use-casesData AnnotationAnnotation MonitoringInter-annotator Agreement (Experimental)Final Dataset Generation (Experimental)Auto-Models (Experimental)To read the full documentation please visithere.Citations@misc{textflow,
  title={{TextFlow}: A Simple Text Annotation Library},
  url={https://github.com/ysenarath/textflow},
  note={An open source python package},
  author={Yasas Senarath},
  year={2020},
}ContributionsWe highly value your feedback on this project,
so let us know. Kindly place an issue for any bugs or feature recommendations.
Package: textflowsms
Textflow python clientSupported Python VersionsThis library supports the following Python implementations:Python 3.6Python 3.7Python 3.8Python 3.9Python 3.10Python 3.11Installationpip install textflowsmsSending an SMSTo send an SMS, you have to create an API key using theTextflow dashboard. When you register an account, you automatically get an API key with one free SMS which you can send anywhere.Just send a messageimporttextflowsmsastftf.useKey("YOUR_API_KEY");tf.sendSMS("+381611231234","Dummy message text...")Handle send message request resultresult=tf.sendSMS("+381611231234","Dummy message text...")if(result.ok):print(result.data)else:print(result.message)Example result object of the successfully sent message{"ok":true,"status":200,"message":"Message sent successfully","data":{"to":"+381611231234","content":"Dummy message text...","country_code":"RS","price":0.05,"timestamp":1674759108881}}Example result object of the unsuccessfully sent message{"ok":false,"status":404,"message":"API key not found"}Verifying a phone numberYou can also use our service to easily verify a phone number, without storing data about the phones that you are about to verify, because we can do it for you.Example usage# User has sent his phone number for verificationresultSMS=tf.sendVerificationSMS("+11234567890",service_name,seconds);# Show him the code submission form# We will handle the verification code ourselves# The user has submitted the coderesultCode=tf.VerifyCode("+11234567890",user_entered_code);# if `resultCode.valid` is True, then the phone number is verified.Verification optionsservice_nameis what the user will see in the verification message, e. g."Your verification code for Guest is: CODE"secondsis how many seconds the code is valid. Default is 10 minutes. Maximum is one day.Getting helpIf you need help installing or using the library, please check theFAQfirst, and contact us atsupport@textflow.meif you don't find an answer to your question.If you've found a bug in the API, package or would like new features added, you are also free to contact us!
Package: textformat
TextFormatTextFormat is a Python library for data cleaning.InstallationUse the package managerpipto install textformat.pipinstalltextformatorpipinstall-ihttps://test.pypi.org/simple/textformatUsagefromtextformatimportTextFormatt=TextFormat()t.tUrl('ejemplo de https://github.com url')# return: ejemplo de  urlt.fReplace('El acento gráfico o tilde es un signo ortográfico')# return: El acento grafico o tilde es un signo ortograficot.fEmoji('Some examples of emojis are 😃, 🧘🏻‍♂️, 🌍, 🍞, 🚗, 📞, 🎉, ♥️, 🍆, and 🏁')# return: Some examples of emojis are , , , , , , , ️, , andt.fTag('ejemplo de #pruebaTag')# return: ejemplo de prueba tagt.fFormat('Eejemplo 123de formato {ñ45','a-z')# return: ejemplo de formato# t.fTweet('tweet') --> Sin # o @ al inicio# t.format('tweet') --> Todas las funciones anterioresLicenseMIT
Package: textfreq
=====Text Frequency=====Description:-----A script to count the frequencies of the following in text:•Words•Letters•Letter pairs•Devanagari Conjuncts•Bengali ConjunctsCan handle non ascii files well. 1gb of data takes approximately 5-7 mins.Installation:------ pip or easy_install 'textfreq'Usage:-----In Shell/Command-prompt: ``textfreq <INPUT.txt> <OUTPUT.txt> <Commands: -w (words), -p (pairs), -l (letters), -dc (Deva Conjuncts), -bc (Bangla Conjuncts)>``Version History:-----***V0.100***- Significantly improved speed- Added Devanagari and Bengali Conjuncts finder***V0.001***- Added words, pairs and letter counts
Package: textfsm
TextFSMPython module which implements a template based state machine for parsing
semi-formatted text. Originally developed to allow programmatic access to
information returned from the command line interface (CLI) of networking
devices.The engine takes two inputs - a template file, and text input (such as command
responses from the CLI of a device) and returns a list of records that contains
the data parsed from the text.A template file is needed for each uniquely structured text input. Some examples
are provided with the code and users are encouraged to develop their own.By developing a pool of template files, scripts can call TextFSM to parse useful
information from a variety of sources. It is also possible to use different
templates on the same data in order to create different tables (or views).TextFSM was developed internally at Google and released under the Apache 2.0
licence for the benefit of the wider community.See documentation for more details.Before contributingIf you are not a Google employee, our lawyers insist that you sign a Contributor
Licence Agreement (CLA).If you are an individual writing original source code and you're sure you own
the intellectual property, then you'll need to sign anindividual CLA.
Individual CLAs can be signed electronically. If you work for a company that
wants to allow you to contribute your work, then you'll need to sign acorporate CLA.
The Google CLA is based on Apache's. Note that unlike some projects
(notably GNU projects), we do not require a transfer of copyright. You still own
the patch.Sadly, even the smallest patch needs a CLA.
Package: textgameengine
Text-Based-Game-EngineA game engine made in python which uses text as its graphic interface instead of regular 2d shapes and sprites.Features:Gameobjects made of multiple lines of textMovement of gameobjects eithe relative or globallyGeneration of each frame at any speedGameobject flips and 90 degree rotationsDeletion of game objectsDeletion and replacemnt of individual characters in game objectsCollision detectionUses of Engine:Platforms which only allow for text inputSimple python console gamesGetting Started:Start by installing the project usingpip install textgameengineTo place your first object, run this codeimporttextgameengine#The stage is the area where all the gameobjects will gostage=Stage(8,8,".")#Text Assets are the equivalent of sprite assets in other game enginestextasset=TextAsset("^-^\n/|\\\n-^-")#Stage.place places the textasset on to the stage at the coordinatesgameobject=stage.place(textasset,2,2,0)#Stage.print rebuilds the scene with any changes made to the stage and then prints itstage.print()Let's say we want to move him to the right by one spot!To move a gameobject, you would use this codeimporttextgameengine#The stage is the area where all the gameobjects will gostage=Stage(8,8,".")#Text Assets are the equivalent of sprite assets in other game enginestextasset=TextAsset("^-^\n/|\\\n-^-")#Stage.place places the textasset on to the stage at the coordinatesgameobject=stage.place(textasset,2,2,0)#Push moves the object relative to its position; In this case, it will move 1 unit to the rightgameobject.push(1,0)#Stage.print rebuilds the scene with any changes made to the stage and then prints itstage.print()
Package: text-game-maker
ContentsFeaturesGetting startedInstallRun the example mapWriting mapsAPI Documentationtext_game_maker is a framework for building simple text-based games. Supports
Python 2 and 3 on Linux and Windows (tested on Debian and Windows 10).FeaturesBuilder API pattern that implements a 2D tile-based grid system for building
maps and creating game objects with a few lines of Python.Flexible object model for defining game objects and NPCs. Many useful game
objects and behaviours are pre-defined so you can start making a game straight
away, but these classes are easy to extend if you need to implement your own
custom game objects.NPCs that you can actually speak to, like a chatbot.text_game_makerNPCs allow you to define custom responses and contexts for discussions using
regular expressions, so you can build an NPC which responds with some
contextual awareness like a chatbot.Arbitrary saving/loading of game states. All game objects can be serialized
to, or loaded from, JSON data.Flexible and extensible parser. The parser that handles game input already
has a lot of useful commands and behaviours built-in. However, any of the
built-in commands can be disabled if necessary, and the parser provides
methods that allow new commands to be defined.Configurable input/output streams.text_game_makerallows custom handlers
to be set for handling user input, and for displaying game output. By default,text_game_makerwill use aprompt-toolkitsession that interacts withstdinandstdoutof the process it is running in. Defining custom
input/output handlers allows you to run your game, for example, as a slack bot
instead (seescripts/text-game-slackbot-runner.py).text_game_makerhas a music system that allows polyphonic music (not
fancy, just simple tones that sound like an old Nokia ringtone, but with full
polyphony) to be written as simple text files that can be loaded and played
during the game (seePTTTL).pygameis used for playback of the raw audio samples.Much more… check out theAPI documentation!Getting startedInstallpip install text_game_makerRun the example mappython -m text_game_maker.exampleWriting mapsWrite a class that extends the text_game_maker.utils.runner.MapRunner class
and implements thebuild_map(and optionallybuild_parser) methods.
Seeexample-map/example_map.pyand theAPI documentationfor reference.Runtext_game_maker.runnerwith the name of the.pyfile containing
your MapRunner class, e.g.:python -m text_game_maker.runner mymaprunner.pyIn this example,text_game_maker.runnerwill import themymaprunner.pyfile and run the first instance it finds of a class
which is a subclass of text_game_maker.utils.runner.MapRunnerTo run a MapRunner class as a slackbot to play your game over slack, the
procedure is the same, except use thetext_game_maker.slackbot_runnerscript, e.g.:python -m text_game_maker.slackbot_runner mymaprunner.pyNote that when using the slackbot runner you must have already created a
bot user in your slack workspace, and the API token for the bot user must be
available in an environment variable namedSLACK_BOT_TOKEN.API Documentationtext-game-maker.readthedocs.io