Saravanan666/pypi-org huggingface dataset:
Package: anixart
Anixart API wrapperОписаниеВраппер для использования Anixart API.Библиотека создана только для ознакомления c API.Автор презирает и не поддерживает создание авторегов / ботов для накрутки / спам ботов.Вся документация в папкеdocsLicenseCopyright (c) 2022 Maxim Khomutov
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 limitation in the rights to use, copy, modify, merge, publish, and/ or distribute copies of the Software in an educational or personal context, 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.
Permission is granted to sell and/ or distribute copies of the Software in a commercial context, subject to the following conditions:
- Substantial changes: adding, removing, or modifying large parts, shall be developed in the Software. Reorganizing logic in the software does not warrant a substantial change.
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: anjani
AnjaniCan be found on Telegram asAnjani.Anjani is a modern, easy-to-develop, fully async Telegram group managing bot for Telegram.RequirementsPython 3.9 or higher.Telegram API key.Telegram Bot TokenMongoDB Database.FeaturesEasy to develop with object oriented models.Fully asynchronous with async / await.Type-hinted method making it easy to create plugins.Localization support.Class based plugin system.DocumentationInstallingPluginIf you want to make your custom plugins, refer toAnjani's Plugins Guide.CreditsMariePyrobudAll Contributors 👥
Package: anjie
This python library provides corpus in English and various local african languages e.g(Youruba, Hausa, Pidgin), it also does sentiment analysis on brandsUSAGEBrand Sentiment Analysisbrand = the name of the brand you will like to perfrom sentiment analysis on e.g "MTN"
csvFileName = The name of the csv file you will like to save your output to, default is brandNews.csv. (optional parameter)from anjie import brandSentimentAnalysisbrandSentimentAnalysis.anjie_brands(brand = "MTN", csvFileName = 'brandNews')import pandas as pddf = pd.read_csv("brandNews.csv.csv")Scraping English CorpusnoRows = The number of rows of news you want.
csvFileName = The name of the csv file you will like to save your output to, default is news.csv. (optional parameter)
News categories include ['news', 'sports', 'metro-plus', 'politics', 'business', 'entertainment', 'editorial', 'columnist']
removeCategories = [] :as a parameter for news categories you dont want in the scraped corpus. (optional parameter)
e.g , englishCorpus.scrape(noRows = 150, removeCategories = ['metro-plus', 'politics'])pass onlyCategories = [] : as a parameter for only categories you want in the scraped corpus. (optional parameter)
e.g , englishCorpus.scrape(noRows = 150, onlyCategories = ['news', 'sports', 'metro-plus', 'entertainment', 'editorial', 'columnist'])from anjie import englishCorpusenglishCorpus.scrape(noRows = 150)df = pd.read_csv("news.csv")Scraping Hausa CorpusnoRows = The number of rows of news you want. only 60 rows of hausa corpus is currently available.
csvName = The name of the csv file you will like to save your output to, default is hausa_news.csv. (optional parameter)from anjie import hausaCorpushausaCorpus.scrape(noRows = 10)import pandas as pddf = pd.read_csv("hausa_news.csv")Scraping Pidgin English corpusnoRows = The number of rows of news you want.
csvFileName = The name of the csv file you will like to save your output to, default is pidgin_corpus.csv. (optional parameter)
News categories include ['nigeria', 'africa', 'sport', 'entertainment']
removeCategories = [] :as a parameter for news categories you dont want in the scraped corpus. (optional parameter)
e.g , englishCorpus.scrape(noRows = 150, removeCategories = ['entertainment'])pass onlyCategories = [] : as a parameter for only categories you want in the scraped corpus. (optional parameter)
e.g , englishCorpus.scrape(noRows = 150, onlyCategories = ['nigeria','sport', 'entertainment'])from anjie import pidginCorpuspidginCorpus.scrape(noRows = 20)df = pd.read_csv("pidgin_corpus.csv")Scraping Yoruba CorpusnoRows = The number of rows of news you want.
csvFileName = The name of the csv file you will like to save your output to, default is yoruba_corpus.csv. (optional parameter)from anjie import yorubaCorpusyorubaCorpus.scrape(noRows = 20)df = pd.read_csv("yoruba_corpus.csv")Github link for project -https://github.com/Free-tek/Anjie_local_language_corpus_generator
Package: anji-orm
anji_ormsimple ORM for RethinkDBInstallationanji_ormis available as a python library on Pypi. Installation is very simple using pip :$pipinstallanji_ormThis will installanji_ormas well as external dependency.Basic usageORM registry should be initiated before usage:# For sync usageregister.init(dict(db='test'))register.load()# Or for async usageregister.init(dict(db='test'),async_mode=True)awaitregister.async_load()That, create some modelclassT1(Model):_table='t2'a1=StringField()a2=StringField()t2=T1(a1='b',a1='c')t2.send()# or for async usageawaitt2.async_send()
Package: ank
Copyright 2016 Nhat Vo Van (a.k.a Sunary) and contributors (see CONTRIBUTORS.txt)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.Description: Python Streaming system, REST-API and Schedule task using queue messageKeywords: ank,streaming,microservice,pipeline,schedule task
Platform: any
Package: ankamantatra
🤔 ankamantatraTechzara WCC2 final weekA simple CLI quizz game.The nameankamantatrais a malagasy word that meansriddle.The user can play within a specific category or mix them all.
A game session consists of 4 questions, each of different type.
A the end of a session, the user is prompted whether he wants to play again or not.⚒️ InstallationTo install frompypi, type in the terminal:pipinstallankamantatraOr you can clone this repository and install it manually usingpoetry,  a tool for dependency management and packaging in Python, by following the following steps :gitclonehttps://github.com/twisty-team/ankamantatra.gitpipinstallpoetry# in the project root directorypoetrybuild&&poetryinstallIn some cases you may get aKeyringLockederror that you can bypass by typing :exportPYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring🏃 How to runIf you installed the package with pip, you can run the game by typing in the terminal :ankamantatraIf you installed it manually using poetry, you can run the game by typing :poetryrunpython-mankamantatra▶ UsageUsage: ankamantatra [OPTIONS] COMMAND [ARGS]...

  A simple quizz game CLI

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  list  List all available questions to play with.
  play  Use to play quiz gameUsage: python -m ankamantatra play [OPTIONS]

  Use to play quiz game

Options:
  -c, --categorie TEXT  Specify Quiz categorie
  --help                Show this message and exit.Usage: python -m ankamantatra list [OPTIONS]

  List all available questions to play with.

Options:
  -c, --category TEXT   Filter by TEXT
  -sa, --show-answer
  -sc, --show-category
  --category-only       Show only the categories and hide questions
  --help                Show this message and exit.🚀 FeaturesPlay quizzList questions or categoriesAuthorstbgracyrhja
Package: ankiapp-easy-deck
OverviewEasy way to make an AnkiApp deck.InstallationTo install ankiapp_easy_deck, you can usepip. Open your terminal and run:pipinstallankiapp_easy_deckLicenseThis project is licensed under the MIT License.LinksDownloadSourceCreditsAuthor: JohannesEmail:johannes-programming@posteo.orgThank you for using ankiapp_easy_deck!
Package: ankicc
ankicc將 Anki deck package (*.apkg) 的所有欄位在繁體及簡體中文間進行相互轉換。Installation 安裝pip install ankiccUsage 使用usage: ankicc [-h] --apkg_path APKG_PATH [--workspace WORKSPACE] --output_path OUTPUT_PATH
              [--convertor {t2jp.json,t2tw.json,hk2t.json,tw2s.json,hk2s.json,s2hk.json,tw2t.json,t2s.json,s2tw.json,s2twp.json,t2hk.json,s2t.json,jp2t.json,tw2sp.json}]

optional arguments:
  -h, --help            show this help message and exit
  --apkg_path APKG_PATH
  --workspace WORKSPACE
  --output_path OUTPUT_PATH
  --convertor {t2jp.json,t2tw.json,hk2t.json,tw2s.json,hk2s.json,s2hk.json,tw2t.json,t2s.json,s2tw.json,s2twp.json,t2hk.json,s2t.json,jp2t.json,tw2sp.json}apkg_path: 待轉換的 apkg 文件位置workspace: ankicc 的工作目錄位置，預設為當前執行目錄，轉換過程中的文件都會保存在該執行目錄 (請留意：轉換後不會自動刪除)output_path: 轉換後的輸出文件位置convertor: OpenCC 的翻譯器設定，預設為簡體轉繁體 (s2t.json)，其他翻譯器設定請參考OpenCC #ConfigurationsThird Party Library 第三方庫OpenCCApache-2.0 LicenseAnkiPandasMIT License
Package: anki-compressor
Anki CompressorCompresses images and audio inAnki.apkg files to reduce the overall file size.Installationanki-compressorcan be installed with Pip, but it requiresPydubandPillowwhich have native dependencies that need to be installed. You'll need to include support forlibvorbisin the audio library, since all audio is converted tooggand all images are converted tojpg.Once you've installed those dependencies, runpip install anki-compressorto install the command line script.Usageusage:anki-compressor[-h]-iINPUT[-oOUTPUT][-qQUALITY][-bBITRATE]CompressAnki.apkgfilesize

optionalarguments:-h,--helpshowthishelpmessageandexit-iINPUT,--inputINPUTInput.apkgfiletocompress-oOUTPUT,--outputOUTPUTOutputfiletowrite,defaultstoMIN_<INPUT>-qQUALITY,--qualityQUALITYQualityvalueforimagecompression(0-100),defaultsto50-bBITRATE,--bitrateBITRATEffmpeg-compliantbitratevalueforaudiocompression,defaultsto48kHere's an example of compressing a fileinput.apkgand writing the output tooutput.apkg:anki-compressor-iinput.apkg-ooutput.apkg-q50-b64kArguments-i: Specifies the input file and is required-o: Output file name, defaults toMIN_<INPUT>-q: Image quality on a scale of 1-100 supplied to Pillow's image processing, defaults to 50-b: Bitrate for audio output, defaults to '48k'
Package: anki_deck_from_text
PurposeThe purpose of this tool is to generate an Anki deck from annotations on a text file.
This was specially developed for those who use Anki to learn language vocabulary.Input structureThe input must be some sort of non-compressed text file (.txt, .md, etc.)Every line to be converted to an Anki card must start with a marker, such as-. Use themarkeroption to set a custom marker. Every other line will be ignored.The front and back of the cards are separated by a separator, such as=. Use theseparatoroption to set a custom separator.Example:- die Katze = the cat
- das Haus = the houseOutside of these rules, you are free to populate your text file with other annotations which will be ignored when creating the deck.Current card typesCurrently, the output deck will be populated with cards from one type at a time.
The currently implemented types are:basic: TheBasiccard type in Anki. Each line's text is split between front and back of one card by theseparatorsound: Similar to theBasic (type in the answer)card type, but with an added empty field on the back of the card that can be filled up afterwards with (for example) sound files by using an add-on such asHyperTTSInstallationMake sure you have python installed (version >= 3.12) and then run in the terminal/command-line:pip install anki_deck_from_textHow to runOpen a terminal/command-line instance and follow the general structure:anki_deck_from_text file_name.md output_name amazing_deck_nameFor all options run:anki_deck_from_text --helpYou will get the following documentation:anki_deck_from_text [OPTIONS] INPUT OUTPUT DECK_NAME

  Generate and Anki deck from annotations on a text file.

  INPUT is the text file. OUTPUT is the desired name for the .apkg file with
  the deck. DECK_NAME is the deck name that will be displayed in Anki.


Options:
  --separator TEXT   Character(s) that separate the text to be written to the
                     front and back of the cards  [default: =]
  --marker TEXT      Character(s) marking this line to be included in the deck
                     [default: -]
  --card_model TEXT  Anki card model to build the deck with. Available options
                     are: `basic`, `sound`  [default: basic]
  -h, --help         Show this message and exit.Further developmentContributingTo contribute to this project:Forkthis projectInstallPoetryInstallNox(optional but recommended for automated tests and code formatting)Change to the project directory and run$ poetry installThis should get your system setup to:Test that your changes didn't break the tool with$ noxorpoetry run pytestBuild with$ poetry build(optional)Test run with$ poetry run anki_deck_from_text ...Once you're happy with your changes and tests:
5. Create apull requestto be reviewedExtending the toolAdd card typesTo add extra card types follow the instructions in themodels.pyfile docstring and then update the current available card types both in the docstring ofgenerate_deck.pyandin the relevant sectionof this README.Refer tothe Anki docsfor how to design Anki card type structures.
Package: ankidmpy
ankidmpyankidmpy( pronounced "anki-dumpy" ) is a straightforward port ofanki-dmtopython.   The originalanki-dmis written inPHPand is a tool to work with theCrowdAnki pluginfor theAnkispaced repetition memory app to facilitate collaborative building of flash card decks.OverviewCrowdAnkialso aims to facilitate collaboration by extracting all the details of an Anki deck into a single json file for easier editing.  Building on this,anki-dmsplits this single json file into several files: one containing the raw data, one each for template layout of the cards, one for css styling, etc. allowing each of them to be edited independently.Reversing the process, you canbuildaCrowdAnkifile from these edited files and in turnimportthese files back intoAnkiwith the plug-in to be used for spaced repetition memorization.UsageThe usage is nearly identical to the originalanki-dmwith only slight differences to accommodate standard arg parsing inpython.$python-mankidmpy--help
usage:anki-dm[-h][--baseBASE][--templates]{init,import,build,copy,index}...

ThistooldisassemblesCrowdAnkidecksintocollectionsoffilesand
directorieswhichareeasytomaintain.Itthenallowsyoutocancreate
variantsofyourdeckviacombiningfields,templatesanddatathatyoureally
need.Youcanalsousethistooltocreatetranslationsofyourdeckby
creatinglocalizedcolumnsindatafiles.

positionalarguments:{init,import,build,copy,index}initCreateanewdeckfromatemplate.importImportaCrowdAnkidecktoAnki-dmformatbuildBuildAnki-dmdeckintoCrowdAnkiformatcopyMakereindexedcopyofAnki-dmdeck.indexSetguidsforrowsmissingthem.

optionalarguments:-h,--helpshowthishelpmessageandexit--baseBASEPathtothedecksetdirectory.[Default:src]--templatesListallavailabletemplates.
$There are several sub-commands which each take their own options.   The--baseswitch applies to each of these sub-commands and must be supplied before the sub-command.   This switch indicates the root directory to use when looking for or generating new files.The--templatesswitch simply lists the sampleCrowdAnkidecks which can be built upon to generate new decks and doesn't require a sub-command.Help for the sub-commands can be found by applying--helpto the sub-command:$python-mankidmpyinit--help
usage:anki-dminit[-h][--deckDECK]template

positionalarguments:templateTemplatetousewhencreatingthedeckset.

optionalarguments:-h,--helpshowthishelpmessageandexit--deckDECKNameofthedefaultdeckofthedecksetbeingcreated.Ifnotprovided,thentheoriginaldeck/templatenamewillbeused.
$Buildingankidmpyis currently written in PurePythonwith no dependencies.  I've only tried it withpython3.7so far but it may work in earlier versions.You can runankidmpywithpython -m ankidmpyby pointing yourPYTHONPATHat thesrcdirectory or you can usepoetryto build a wheel distribution like so:$poetryinstall
$poetrybuildOnce you runpoetry installyou can also runankidmpyusing thepoetryscript like so:$poetryrunanki-dm--helpSee thepoetrydocumentation for more details.
Package: anki-export
anki-exportExport your Anki *.apkg to Python. Read Anki *.apkg in Python.Examplefromanki_exportimportApkgReaderimportpyexcel_xlsxwxwithApkgReader('test.apkg')asapkg:pyexcel_xlsxwx.save_data('test.xlsx',apkg.export(),config={'format':None})See real running example at/__extras__/blank-install/to-xlsx.py.Installation$ pip install anki-exportWhy?*.apkg is quite well structured, convincing me to use this format more.Allow you to use *.apkg programmatically in Python.Might be less buggy thanhttps://github.com/patarapolw/AnkiToolsMy other projects to create SRS flashcards outside Ankisrs-sqlite- A simple SRS app using Markdown/HandsOnTable/SQLitejupyter-flashcards- Excel-powered. Editable in Excel. SRS-enabled.gflashcards- A simple app to make formatted flashcards from Google Sheets. SRS-not-yet-enabled.HanziLevelUp- A Hanzi learning suite, with levels based on Hanzi Level Project, aka. another attempt to clone WaniKani.com for Chinese. SRS-enabled.
Package: ankigengpt
AnkiGenGPTAnkiGenGPT is a Python CLI tool that harnesses the power of OpenAI's GPT-3 or GPT-4 model to transform your text into flashcards for Anki, an open-source spaced repetition software.InstallYou can install AnkiGenGPT using pip:pip3-UinstallankigengptAlternatively, you can use pipx for installation:pipxinstallankigengptConfigurationTo use AnkiGenGPT, you need an OpenAI API token, which can be provided either through the --openai-token command-line option or via the OPENAI_TOKEN environment variable.EpubAnkiGenGPT can scan an epub file for text and use ChatGPT to create Anki cards. Here's an example of how to use it:ankigengptepub--path~/Downloads/my-ebook.epubKindle HighlightsTo generate Anki cards from Kindle highlights, ensure the highlights are in the APA format, and then run the following command:ankigengptkindle-highlights--path~/Downloads/Notebook.htmlKobo HighlightsFor Kobo highlights, you can enable the export feature on your Kobo device by connecting it via USB and modifying the .kobo/Kobo/Kobo eReader.conf file. Add the following under [FeatureSettings]:[FeatureSettings]ExportHighlights=trueAfter enabling export highlights on the Kobo device, you can retrieve the highlight files via USB and use the kobo-highlights command to create Anki cards:ankigengptkobo-highlights--path~/Downloads/BookHighlights.csvPlain textou can also use AnkiGenGPT with plain text files such as markdown or txt. Here's how to use it:ankigengptplain--path~/Downloads/book.mdDebuggingTo debug AnkiGenGPT, you can use the --debug option.
Package: anki-kunren
Anki Kunren (暗記 訓練)Anki Kunren is a program to drill japanese kanji stroke order and practice writing in sync with an Anki study session.Installationinstall via pip:pip install anki-kunreninstallanki-connectwith code2055492159UsageOpen Anki and begin a review. You can then usekunrenas follows:usage:kunren [-h] [-s S] [-d D] [--field FIELD] [--size SIZE]optional arguments:-h, --helpShow help message-s SStart point size in px. defaults to 5px-d DStroke forgiveness in average px from actual. defaults to 25px--field FIELDname of anki card field containing kanji. defaults to "Vocabulary-Kanji"--size SIZELength of a size of the square canvas in pixels. Defaults to 300.While running, you can use the following controls:h: hint the current strokea: animate the current stroken: next kanji in the expressionesc: quitc: refresh the current card shown. This is done automatically when all characters have been drawn, but would slow the program to a crawl if checked for every frame.NotesWhen the size parameter is changed, all tolerances get multiplied by the ratio ofsize/109.OtherThis project uses KanjiVG stroke order data.
It is licensed by Ulrich Apel under theCreative Commons Attribution Share-Alike 3.0license.The KanjiVG ascii filename code is taken fromKanji Colorizerwhich was also the source of my initial inspiration.TODOcatch all indexoutofboundssmoother kanji linesdifferent coloring for different parts of stroke based on how wrong it is.
Package: ankillins
Generates Anki cards from Collins pages.ankillinsAnkillins is a Command Line Application that generates Anki cards from collinsdictionary.com pages.FeaturesGenerating cloze card for every definitionWord pronounce in cardsExamples pronounce support (locked because of high memory usage)Words search supportOriginal site stylesUsage➜ankillinssearch"At the end of the day"attheendoftheday
➜ankillinsgen-cards"At the end of the day"Word"At the end of the day"processedsuccessfully
➜ankillinsgen-cardshelloknifespider"so on"kekdoes_not_exists"sort of"kind
Word"hello"processedsuccessfully
Word"knife"processedsuccessfully
Word"spider"processedsuccessfully
Word"so on"processedsuccessfully[Error]Wordkeknotfound
Similarwords:keck,keek,keks,kike,eek,kak,keV,kea,keb,ked,kef,keg,ken,kep,ket,kex,key,lek,nek,zek[Error]Worddoes_not_existsnotfound
Similarwords:dentists,kenoticists
Word"sort of"processedsuccessfully
Word"kind"processedsuccessfully
➜ls-lh
total32K
-rw-r--r--1hairygeekhairygeek31KJul2612:56ankillins-result.csvAnkillins doesn't add cards to Anki itself. Instead, it generatesankillins-result.csvfile which you need to import.Important detailsWhen you import result file click on the "fields separated by" and type~It is better to create your own card type with styles located incard_styles.cssto get card style close to collinsdictionary page style.InstallationWill be available sooner
Package: ankilol
Anki Card Knowledge SyncerThe ProblemI like to ask lots of questions, but I can't always immediately find out the answers to those questions. So I store them in a google doc. When I do figure out the answers, I add them. Now, I would like to take that question/answer pair and create an Anki flashcard, so that I can store it in my long-term memory. However, copy-pasting these questions and answers into anki is a time-consuming process, and one which can be fully automated.The solutionThis project takes a formatted set of questions and answers stored as a cloud document, creates flashcards from those question/answer pairs, adds them to an Anki deck, and syncs that local deck with AnkiWeb.Example usage with locally-downloaded HTML filespython -m card_parser input_file.htmlExample usage with locally-downloaded text filespython -m card_parser input_file.txtExample usage with files stored on google drivePrerequisites#. Sign up for a google cloud account
#. Create a new project and service account for that project
#. Share the document with the service account's e-mail
#. Download the service account's .json credentials and place inservice_account.jsonfile incard_parserdirectory
#. Setup config.ini to point to the appropriate google doc IDThen, just run the following command:python -m card_parserYour document should have been uploaded in-place.DisclaimerNOTE: This package is currently under development, and has not yet been published to pip. The only current way to install it is through cloning this repository.