Saravanan666/pypi-org huggingface dataset:
Package: wigner
wignerpackage for PythonThewignerpackage for Python contains bindings to thewignerC library
for computing Wigner d functions and 3j symbols.Functions are provided with minimal wrapping:>>>importwigner>>>wigner.wigner_3jj(2,3,-1,2)(1.0,5.0,[-0.308,-4.280e-17,0.188,-0.197,0.101])InstallationThe package can be installed with pip:$pipinstallwignerThe only dependency is numpy.Functionslegendre_pl– Legendre polynomial as function oflwigner_3jj– Wigner 3j symbol as function ofl1wigner_3jm– Wigner 3j symbol as function ofm2wigner_dl– Wigner d function as function ofllegendre_pllegendre_pl(lmin, lmax, x)Compute the Legendre polynomialsP_l(x)for all degreesl = lmintol =
lmax, withxbeing held fixed.  The argumentslminandlmaxmust be
integers, while the argumentxmust be float.  Returns a numpy array of sizelmax-lmin+1.wigner_3jjwigner_3jj(l2, l3, m2, m3)Evaluate the Wigner 3j symbol/   l1    l2  l3 \
\ -m2-m3  m2  m3 /for all allowable values ofl1, with the other parameters held fixed.  For
physically meaningful outputs, the arguments must be integer or half-integer,
although other inputs are allowed.  Returns a tuplel1min, l1max, thrcofwherel1minandl1maxare the smallest and largest allowable values ofl1,
andthrcofis a numpy array of sizel1max-l1min+1containing the values of
the 3j symbol.wigner_3jmwigner_3jm(l1, l2, l3, m1)Evaluate the Wigner 3j symbol/ l1  l2    l3  \
\ m1  m2  -m1-m2/for all allowable values ofm2, with the other parameters held fixed.  For
physically meaningful outputs, the arguments must be integer or half-integer,
although other inputs are allowed.  Returns a tuplem2min, m2max, thrcofwherem2minandm2maxare the smallest and largest allowable values ofm2, andthrcofis a numpy array of sizem2max-m2min+1containing the values of the
3j symbol.wigner_dlwigner_dl(lmin, lmax, m1, m2, theta)Compute the Wigner d functiond^l_{m1,m2}(theta)for all degreesl = lmintol = lmax, withm1,m2, andthetabeing held fixed.  The argumentslmin,lmax,m1,m2must be integers, and the anglethetamust be given
in radian as float.  Returns a numpy array of sizelmax-lmin+1.
Package: wigtools
wigtoolsA set of tools for wiggle fileInstallationpip install wigtoolsUsage>wigtools

Description:Asetoftoolsforwigglefile

Usage:wigtools<command>[OPTIONS]Globaloptionaloptions:-h,-H,--help-Showhelpmessageandexit.

Availablecommands:switch-base-Switchthecoordinatebaseofawigglefile.sort-Sorttheblocksinawigglefilebychromandstart.Chromosomeswillbe\sortedthewaysort-Vdoes.stats-Statisticsfordatainawigglefileforeachblockreshape-Generateanewwigglefileandreshapetheblockstothequeryregionsquery-Findtheblocksthatintersectwiththequeryregionshelp[COMMAND]-Printhelpmessageforthecommandandexit.Switch coordinate base for a wiggle file>cattest.wig
variableStepchrom=chr11.022.0

>cattest.wig|wigtoolsswitch-base--to0variableStepchrom=chrspan=101.012.0Sort a wiggle file>cattest-unsorted.wig
variableStepchrom=chr51.062.0
variableStepchrom=chr11.022.0

>cattest.wig-unsorted.wig|wigtoolssort
variableStepchrom=chrspan=111.022.0
variableStepchrom=chrspan=151.062.0Calculate the statistics of each block>cattest-unsorted.wig|wigtoolssort|wigtoolsstats
ChromStartEndminmaxmeanmediansumcountbp
chr121.02.01.51.53.022chr561.02.01.51.53.022>cattest-unsorted.wig|wigtoolssort|wigtoolsstats--statsmeancount--nohead
chr121.52chr561.52Query a wiggle file to find blocks>catquery.bed
chr23>wigtoolsquery-itest-unsorted.wig--qfilequery.bed
variableStepchrom=chrspan=111.022.0

>wigtoolsquery-itest-unsorted.wig--qfilequery.bed--qbase0# No overlapping blocksReshape the blocks in query regions>catreshape.bed
chr18>cattest-unsorted.wig|wigtoolssort|wigtoolsreshape--qfilereshape.bed
variableStepchrom=chrspan=111.022.051.062.0
Package: wihmt
FeaturesTODORequirementsTODOInstallationYou can installWill I have money tomorrowviapipfromPyPI:$pipinstallwihmtUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMITlicense,Will I have money tomorrowis 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: wii-music-editor
InstallationDownloadand install Python 3.9 or later.Then, open a terminal and run the following command:pipinstallwii-music-editorUsageTo run the program, search forWii Music Editorin the start menu, or open a terminal and run the following command:wii-music-editorBug Reports / HelpIf you encounter any bugs or need help, please join theDiscord serverand ask for help in the#editor-helpchannel.Building from SourceTo build the program yourself, open a terminal and run the following command:gitclonehttps://github.com/BenjaminHalko/WiiMusicEditorPlus.gitcdWiiMusicEditorPlus
pipinstall-rrequirements.txt
pythonapp.py
Package: wiiodfs
Mount your Wii disc images on a local directory using the FUSE API.1. How to use$ ./wiiodmount –helpYou can also install wiiodmount on your system using distutils:$ python2 setup.py install2. DependenciesPyCrypto (needed for AES computations)PyFS (used to expose the FS with FUSE)3. Use the wod librarywiiod is also a Python 2.x package you can use in your applications. There are
several layers you can use, from the lowest level to the highest level:wiiod.disc: disc image access, partition table, game metadata.wiiod.partition: crypted partition access, DOL/bootloader/FS raw access.wiiod.wiiodfs: “high level” API to access files on WOD partitions.wiiod.fs: a PyFS filesystem using wiiod.wiiodfs.4. AuthorsSee AUTHORS.5. ThanksWiibrew, a great wiki about Wii homebrews with a lot of documentationhttp://wiibrew.orgYet Another Gamecube Documentationhttp://hitmen.c02.at/files/yagcd/yagcd/index.htmlThe Dolphin emulator teamhttp://dolphin-emu.org/Segher Boessenkool for his Wii toolshttp://git.infradead.org/users/segher/wii.gitPyCrypto authors for their great library (but please, Py3k support!)http://www.dlitz.net/software/pycrypto/The PyFS authors and contributorshttp://code.google.com/p/pyfilesystem/
Package: wiiuse
This project is a Python wrapper for the Wiiuse Wii remote library. This has been updated to keep up with the semi-official port athttps://github.com/rpavlik/wiiuseandhttp://www.vrac.iastate.edu/vancegroup/docs/wiiuse/It uses ctypes, so it should work with the official CPython or PyPy.Change log2012-07-01 : Updated to work with semi-official port wiiuse v0.13 (Thanks Juan Alvarez!)
2010-10-22 : pywiiuse for wiiuse v0.12ContributersTim Swast <purplemonkeyking (at) gmail (dot) com>Juan AlvarezGary Bishop <gb@cs.unc.edu> (Original author)
Package: wijisqs
wijisqswijiis an asyncio distributed task
processor/queue.wijisqson the other hand, is an AWS SQS broker forwijiContents:InstallationUsage+As a library+As cli appInstallationpipinstallwijisqsUsage1. As a libraryimportosimportwijiimportwijisqsimportasynciobroker=wijisqs.SqsBroker(aws_region_name="aws_region_name",aws_access_key_id=os.environ.get("aws_access_key_id"),aws_secret_access_key=os.environ.get("aws_secret_access_key"),)classAdderTask(wiji.task.Task):the_broker=brokerqueue_name="AdderTaskQueue1"asyncdefrun(self,a,b):result=a+bprint("\nresult:{0}\n".format(result))returnresult# queue some tasksmyAdderTask=AdderTask()myAdderTask.synchronous_delay(a=4,b=37)myAdderTask.synchronous_delay(a=67,b=847)# run the workersworker=wiji.Worker(the_task=myAdderTask)asyncio.run(worker.consume_tasks())For extended documentation, see thewiji
documentation
Package: wik
WIKwik is a tool to view wikipedia pages from your terminal.
It also let you search for any wikipedia up to date article on one query from your terminal.[Installation] [Options] [Examples] [Contribution]RequirementsPython3beautifulsoup4InstallationLinuxFrom Sourcesudopip3installbeautifulsoup4flit_core
gitclonehttps://github.com/yashsinghcodes/wik.gitcdwik
sudopip3install.PYPIsudopip3installwikWindowsFrom Sourcepip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
pip install .Note: Windows users should have added python to there environment variablePYPIpip install wikOptionsUsing wik is acutally really simple.usage: wik [-h] [-s SEARCH] [-i INFO] [-q QUICK] [-l LANG] [-x]

optional arguments:
  -h, --help            show this help message and exit
  -s SEARCH, --search SEARCH
                        Search any topic
  -i INFO, --info INFO  Get info on any topic
  -q QUICK, --quick QUICK
                        Get the summary on any topic
  -l LANG, --lang LANG  Get info in your native language (default english)
  -x, --rand            Get random Wikipedia articleExample$wik-iLinux$wik-qLinux$ wik -i Linux -l brContributionYou can contribute to the project by opening a issue if you face any or making a pull
requests, if you think you can fix somthing or make improvment on the code. If you have some
ideas related to the project you cancontact me.
Package: wikdict-compound
wikdict-compoundThis library splits compound words into the individual parts. It uses a large dictionary including inflected forms and keeps the amount of language specific rules to a minimum in order to support a variety of languages.
The dictionaries come from Wiktionary viaWikDictand are licensed underCreative Commons BY-SA.InstallationInstall this library usingpip:pip install wikdict-compoundUsageCreate Required DatabasesTo use wikdict-compound, you need a database with the required compound splitting dictionaries. These are created based on the WikDict dictionaries athttps://download.wikdict.com/dictionaries/sqlite/2/. For each language you want to useDownload the corresponding WikDict SQLite dictionary (e.g.de.sqlite3for German)Executemake_db(lang, input_path, output_path)whereinputpath contains the WikDict dictionary andoutput_pathis the directory where the generated compound splitting db should be placed.Split Compound Words>>> from wikdict_compound import split_compound
>>> split_compound(db_path='compound_dbs', lang='de', compound='Bücherkiste')
Solution(parts=[
    Part(written_rep='Buch', score=63.57055093514545, match='bücher'),
    Part(written_rep='Kiste', score=33.89508861315521, match='kiste')
])The returned solution object has apartsattribute, which contains the separate word parts in the correct order, along with the matched word part and a matching score (mostly interesting when comparing different splitting possibilites for the same word).Supported Languages and Splitting QualityThe results for each language are compared against compound word information from Wikidata.
For each language a success range is given, where the higher value includes all compounds where a splitting could be found while the lower value only counts those where the results are the same as on Wikidata.
Since some words have multiple valid splittings and the Wikidata entries are not perfect either, the true success rate should be somewhere within this range.de: 81.8%-97.7% success, tested over 2984 casesen: 69.6%-98.2% success, tested over 16061 caseses: 27.5%-75.6% success, tested over 1000 casesfi: 78.5%-96.9% success, tested over 65 casesfr: 15.2%-36.3% success, tested over 328 casesit: 18.4%-60.3% success, tested over 136 casesnl: 33.3%-100.0% success, tested over 3 casespl: 30.9%-90.9% success, tested over 220 casessv: 75.7%-97.8% success, tested over 5979 casesDevelopmentTo contribute to this library, first checkout the code. Then create a new virtual environment:cd wikdict-compound
python -m venv .venv
source .venv/bin/activateNow install the dependencies and test dependencies:pip install -e '.[test]'Related ResourcesThe approach is similar to the one described inSimple Compound Splitting for German(Weller-Di Marco, MWE 2017). I can also recommend the paper as an overview of the problems and approaches to compound words splitting of German words.
Package: wiker
Wikerlibrary for wikipedia text dataset collectionInstallationpip install wikerQuickstartfromwikerimportWikerwk=Wiker(lang='uz',first_article_link="Turkiston")wk.run(scrape_limit=50)Another methodsfromwikerimportWikerwk=Wiker(lang='uz',first_article_link="Turkiston")wk.reader()# read the pre_urls.txt file and return the result as a listwk.read_url_count()# The number of all links that read the pre_urls.txt filewk.extra_file_writer()# if the pre_urls.txt file is empty, the function writes first_article_link to the filewk.scraper()# Get all articles from links in pre_urls.txt filewk.text_cleaner()# clean up the html and other tags in the retrieved articleswk.next_urls()# get links for further scrapingwk.dir_scanner()# scan the "data" folder to count fileswk.cleaned_text_writer(text_dict=wk.text_cleaner())#wk.post_url_writer(url_list=wk.scraper().keys())# writing the name of the saved articles to the filewk.pre_url_writer(url_list=wk.next_urls())# write names in next_urls to files for next process
Package: wiki2csv
Wiki2csv is a command line tool to convert a file containing a table in wikipedia’swikitable syntaxto comma separated value syntax and the other way around. It was designed to allow editing of large wikipedia tables using the easier interface of common spreadsheet programs such as Microsoft Excel orLibreOffice. Therefore it tries to preserve as much of the layout and formatting directives from the wikitable as possible, and it tries to be fully round trippable.
Package: wiki2neo
wiki2neoProduceNeo4jimport CSVs fromWikipedia database dumpsto build a graph of links between Wikipedia pages.Installation$pipinstallwiki2neoUsageUsage: wiki2neo [OPTIONS] [WIKI_XML_INFILE]

  Parse Wikipedia pages-articles-multistream.xml dump into two Neo4j import
  CSV files:

      Node (Page) import, headers=["title:ID", "id"]
      Relationships (Links) import, headers=[":START_ID", ":END_ID"]

  Reads from stdin by default, pass [WIKI_XML_INFILE] to read from file.

Options:
  -p, --pages-outfile FILENAME  Node (Pages) CSV output file  [default:pages.csv]
  -l, --links-outfile FILENAME  Relationships (Links) CSV output file [default: links.csv]
  --help                        Show this message and exit.

Import resulting CSVs into Neo4j:
$ neo4j-admin import --nodes:Page pages.csv \
        --relationships:LINKS_TO links.csv \
        --ignore-duplicate-nodes --ignore-missing-nodes --multiline-fieldsDownloads from Wikipedia are in compressedxml.bz2format. Simplest usage is to pip extraction output straight intowiki2neo:$bzcatpages-articles-multistream.xml.dz2|wiki2neo
Package: wikia
Wikiais a Python library that makes it easy to access and parse
data from anywikia website <https://www.wikia.com>Search a wikia, get article summaries, get data like links and images
from a page, and more. Wikipedia wraps theWikia APIso you can focus on using
wikia data, not getting it.>>>importwikia>>>printwikia.summary("Runescape","Banshee")# Banshees are Slayer monsters that require level 15 Slayer to kill. They frequently drop 13 noted pure essence, making them an alternative source of essence. Additionally, banshees tend to frequently drop many different types of herbs. Mighty banshees are a higher-levelled alternative, if this is given as your Slayer assignment.>>>wikia.search("Runescape","Forest")# [u'Forest', u'Forester', u'Freaky Forester', u'Forester\'s Arms', u'Talking Forest', u'Jungle Forester', u'Dense forest', u'Forester hat', u'Ogre forester hat', u'Forester (Burgh de Rott Ramble)']>>>drakan=wikia.page("Runescape","Castle Drakan")>>>drakan.title# u'Castle Drakan'>>>drakan.url# u'http://runescape.wikia.com/wiki/Castle_Drakan'>>>drakan.content# u'Castle Drakan is the home of Lord Drakan, the vampyre lord of Morytania. Found just north of Meiyerditch, it looms over the Sanguinesti region'...>>>wikia.set_lang("nl")# Dutch>>>wikia.summary("Runescape","Runes",sentences=1)# Runes, of Magische runes zijn kleine gewichtloze steentjes waarmee spelers een spreuk kunnen uitvoeren.Note: this library was designed for ease of use and simplicity, not for advanced use.InstallationTo install Wikia, simply run:$ pip install wikiaWikia is compatible with Python 2.6+ (2.7+ to run unittest discover) and Python 3.3+.DocumentationRead the docs athttp://api.wikia.com/wiki/Wikia_API_Wiki.To run tests, clone therespository on GitHub, then run:$ pip install -r requirements.txt
$ bash runtests  # will run tests for python and python3
$ python -m unittest discover wikia/tests/ '*test.py'  # manual stylein the root project directory.To build the documentation yourself, after installing requirements.txt, run:$ pip install sphinx
$ cd docs/
$ make htmlLicenseMIT licensed. See theLICENSE
filefor
full details.Creditswiki-apiby
@richardasaurus for inspiration@nmoroze and @themichaelyang for feedback and suggestionsTheWikimedia
Foundationfor giving
the world free access to data@goldsmith for making such a fantastic library to fork/u/captainmeta4 for giving the idea for a reddit bot to post game wiki info
like auto-wiki bot
Package: wiki-base
adjango-wiki-base================Background----------Django-wiki-base is a lightweight, heavily customized version of [django-wiki](https://github.com/benjaoming/django-wiki), it only contains structure models (to be easily included in existing project via API).Can I use existing django-wiki data with wiki-base?---------------------------------------------------No, sorry.Contributing------------If you have a great idea, let me know; for now I'd like to keep everything as simple as possible.Dependencies------------So far the dependencies are:* [django>=1.4](http://www.djangoproject.com)* [django-south](http://south.aeracode.org/)* [Markdown>=2.2.0](https://github.com/waylan/Python-Markdown)* [django-mptt>=0.5.3](https://github.com/django-mptt/django-mptt)* Python>=2.5<3 (Python 3 not yet supported)Development------------In your Git fork, run `pip install -r requirements.txt` to install the requirements.Python compatibility--------------------It was compatible with Python 2.5 when I cloned from django-wiki repository (Jan 2014), but I'm developing on 2.7.Feel free to contact me/send a pull request if something has broken (not related to plugins).Due to Markdown using elementree, you should check that you have python-celementtree: `apt-get install python-celementtree`Acknowledgements----------------* [Original wiki developers and maintainers](https://github.com/benjaoming/django-wiki/graphs/contributors)<!---Illegal PyPi RST data --><!---Anything that isn't validly translateable to PyPi RST goes after this line -->
Package: wikibase-api
wikibase-apiwikibase-apiis a Python library for simple access to theWikibase API.It simplifies the authentication process and can be used to query and edit information on Wikidata or any other Wikibase instance.For a simpler, object-oriented abstraction of the Wikibase API, have a look atpython-wikibase.Installationpipinstallwikibase-apiUsageSimple example for fetching all information about a Wikidata page:fromwikibase_apiimportWikibasewb=Wikibase()r=wb.entity.get("Q1")print(r)Output:{"entities":{"Q1":{# ...}},"success":1,}See thedocumentationfor descriptions and examples of all commands.DevelopmentContributingSuggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request.SetupSeethis guideon how to set up a development environment for this package.Relatedpython-wikibase– Wikibase queries and edits made easy
Package: wikibasedataconnector
WikiBase Data ConnectorThis repository contains a Python library that provides a connector to the WikiBase database. WikiBase is a free and open knowledge base that can be read and edited by both humans and machines, and that contains structured data and metadata about a wide range of topics.InstallationTo install the library, you can use pip:pipinstallwikibasedataconnectorUsageTo use the library, you need to create an instance of the WikiBaseDataConnector class, and then call its methods to process data into the WikiBase. For example:importjsonimportcsvimportasynciofromwikibasedataconnectorimportWBDCconf_filepath='conf'site_name=<SITE>PATH=f'{conf_filepath}/import_properties_add.json'withopen(PATH,'r',encoding='utf-8')asf:mapping_config=json.load(f)bot=WBDC(site_name)bot.set_mapping_config(mapping_config)FILEPATH='data/properties.csv'withopen(FILEPATH,'r',encoding='utf-8')asfile:csv_file=csv.reader(file)next(csv_file)awaitasyncio.gather(*[bot.process(row)forrowincsv_file])This code will read and process theproperties.csvfile according to theimport_properties_add.jsonconfiguration file.
More examples can be found inexample/example_upsert.ipynb.This uses the Pywikibot library, so it is required to create a family file and generated user files if you're using a custom wikibase.To create family and user filescreate<family-filename>family using commandpwb generate_family_fileset url and a desired name for familyadd the following code to your familyfile i.e.<family-filename>_family.pydef default_globe(self, code) -> str:
    """Default globe for Coordinate datatype."""
    return 'earth'

def globes(self, code):
    """Supported globes for Coordinate datatype."""
    return {
        'earth': 'http://www.wikidata.org/entity/Q2'
    }ensuring that you are in the same directory as where you generated the family file, create user config and password files with commandpwb generate_user_filesselected yes on adding a BotPasswordused same name for bot when it was created within the wikibase instanceadd password provided by wikibase instanceIt will prompt on whether to add additional options in the user-config.py file. They're not necessary to set up for the connection to the wikibase to be established.change user-config file to read only by runningchmod 0444 user-config.py(Set-ItemProperty -Path ./user-config.py -Name IsReadOnly -Value $truefor Windows)runpwb loginto test connectionTroubleshootingIt is possible that the path was not added to the environment. If that is the case, a warning such as this will pop up:WARNING: The script pwb.exe is installed in 'your/path/to/local-packages/Python310/Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.You can add the path by runningexport PATH=$PATH:/some/new/pathNote: If you are on Windows, instructions to add the path can be foundhereyou can test to see if pywikibot is working by running the command `pwb`LicenseThis library is released under the MIT License. Please refer to the LICENSE file for more information.