Saravanan666/pypi-org huggingface dataset:
Package: w
[![Build Status](https://travis-ci.org/berkeley-cocosci/Wallace.svg?branch=master)](https://travis-ci.org/berkeley-cocosci/Wallace)
[![Coverage Status](https://coveralls.io/repos/github/berkeley-cocosci/Wallace/badge.svg?branch=master)](https://coveralls.io/github/berkeley-cocosci/Wallace?branch=master)
[![Code Climate](https://codeclimate.com/github/berkeley-cocosci/Wallace/badges/gpa.svg)](https://codeclimate.com/github/berkeley-cocosci/Wallace)
[![License](https://img.shields.io/github/license/berkeley-cocosci/Wallace.svg)](http://en.wikipedia.org/wiki/MIT_License)<img src=”portrait.jpg?raw=true” width=”125” alt=”Portrait of Alfred Russel Wallace”>Wallace is a platform for conducting research on experimental cultural evolution. Its namesake is Alfred Russel Wallace, a British naturalist and the oft-ignored codiscoverer of evolution by natural selection. You can use Wallace to create new experiments or to reproduce existing experiments. For example, the following code runs a replication of Bartlett’s 1932 study, in which participants pass a story down a chain, from one person to the next.wallace create bartlett1932
cd bartlett1932
wallace deployFeaturesRuns experiments on experimental cultural evolutionCoordinates participant recruitment using Mechanical TurkDemos of common experimental paradigmsContributeIssue Tracker:http://github.com/berkeley-cocosci/Wallace/issuesSource Code:http://github.com/berkeley-cocosci/WallaceSupportIf you are having issues, please let us know.
We run a users group athttps://groups.google.com/d/forum/wallace-usersLicenseThe project is licensed under the MIT license.
Package: w01florem
w01floremA lorem ipsum creator with the special feature of creating multiple
files with different names and contents in different folders.the background of the programme is to use it for tests of w01fm00n
(https://github.com/w01fdev/w01fm00n). it could also be useful for
other programs for tests that have to do with a search of files.Mode 1 - Create a nested list of words for a given number of paragraphsload class from modulefrom w01florem.main import Loremcreate instance of a classall important parameters can be transferred in the process:lorem = Lorem(paragraphs=2, words_min=30, words_max=100)####the parameter values in the example are the default values and can therefore also be omitted:lorem = Lorem()run the program and get a nested list for each paragraph:paragraphs = lorem.run()the values of the respective parameters can be obtained via:lorem.get_paragraphs()lorem.get_words_min()lorem.get_words_max()Setting new values after instantiation:lorem.set_paragraphs(3)lorem.set_words_min(20)lorem.set_words_max(35)Mode 2 - Create lorem ipsum text files in directories and subdirectoriesNot yet implementedfurther information:see docstrings in w01fm00n.py
Package: w01fm00n
w01fm00nterminal-based forensic utilitythe main test is the use via a terminal, but m00n should also be usable
as a module without any problems.installationpip install w01fm00nsyntaxusage: w01fm00n [-h] [-a] [-r] [-v] root file

positional arguments:
  root           root directory of the scan
  file           file into which the scan is to be written

optional arguments:
  -h, --help     show this help message and exit
  -a, --archive  archive the <.csv> file as <.tar.gz> and then delete it.
  -r, --raw      output in raw format -> partly difficult to read for humans -> default: <False>
  -v, --version  show program's version number and exitexamples of usagepip installationsave in the program directory:w01fm00n '/home/user/Pictures/' 'data.csv'save with an absolute path in raw mode as archive:w01fm00n -r -a '/home/user/Pictures/' '/home/user/m00n/data.csv'github packagesave in the program directory:python w01fm00n.py '/home/user/Pictures/' 'data.csv'save with an absolute path in raw mode as archive:python w01fm00n.py -r -a '/home/user/Pictures/' '/home/user/m00n/data.csv'further information:see docstrings in w01fm00n.pyplanned future implementations and improvements:https://github.com/w01fdev/w01fm00n/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement
Package: w13scan
W13ScanW13scan is a proxy-based web scanner that runs on Linux/Windows/Mac systems.简体中文| English声明仅用于教育行为使用，其他用途后果自负BeginDemohttps://youtu.be/WwIc2kDlKbcPure Python and Python version >= 3Can you use star to encourage the author ？📦 Install$sudopip3installw13scan## update$sudopip3install-Uw13scanor$wgethttps://github.com/boy-hack/w13scan/archive/master.zip
$unzipmaster.zip
$cdmaster/W13SCAN
$pip3install-r../requirement.txt
$python3cli.py-h🔨 Usage## help$w13scan-h## running$w13scan-s127.0.0.1:7778HTTPS SupportIf you want w13scan to support https, similar to BurpSuite, first need to set up a proxy server (default 127.0.0.1:7778), then go tohttp://w13scan.cato download the root certificate and trust it.⌨ DevelopmentfromW13SCAN.apiimportScannerscanner=Scanner(threads=20)scanner.put("http://example.com/?post=1")scanner.run()By introducing the w13scan package, you can quickly create a scanner.ContributorsCONTRIBUTORS
Package: w1hack
hack4u Academy Course LibraryUna biblioteca de python para consultar cursos de la academia hack4u.cursos disponibles:Introduccion a Linux [15 horas]Personalizacion de Linux [3 horas]Introduccion al hacking [53 horas]InstalaciónInstalar el paquete usandopip3:pip3installhack4uUso básicoListar todos los cursosfromhack4uimportlist_coursesforcourseinlist_courses():print(course)Obtener un curso por nombrefromhack4uimportget_course_by_namecourse=get_course_by_name("Introduccion a Linux")print(course)Calcular duración total de los cursosfromhack4u.utilsimporttotal_durationprint(f"Duracion total:{total_duration()}horas")
Package: w20e.pycms_news
w20e.pycms.newsw20e.pycms news content type and listings. To use it in your PyCMS app,
add the egg dependency (usually in your buildout) and include the
package ZCML from your configure.zcml like so:<include package=”w20e.pycms_news”/>Now show the news listing viewlet in your template like:<div tal:content=”structure view.render_viewlet(‘newslisting’, limit=3)” />1.0.1aadded i18n1.0.0aFirst try…
Package: w20e.pyramidwsgi.recipe
Introduction============''w20e.pyramidwsgi.recipe'' is a `zc.buildout`_ recipe that creates aWSGI script for inclusion in Apache `using mod_wsgi`_. The Apacheconfig skeleton can also be created (optional).To create a WSGI config for your Pyramid app, include a section inyour ''buildout.cfg'' like so::[wsgi]recipe = w20e.pyramidwsgi.recipeeggs = ${pyramid:eggs}extra-paths = ${pyramid:extra-paths}script_name = yourappini_file = ${buildout:directory}/production.iniapache_config = ${buildout:directory}/apache_wsgi.confThis will create a python script in bin called ''yourapp.wsgi'' whichmod_wsgi can load. You can also use the optional ''extra-paths''option to specify extra paths that are added to the python systempath. If you provide the optional apache_config option, the Apacheconfig file will be created. This is a skeleton however, someparameters need to be filled in... _zc.buildout: http://pypi.python.org/pypi/zc.buildout.. _mod_wsgi: http://code.google.com/p/modwsgi/
Package: w2j
Migrate from WizNote to Joplin.Dependencypython 3.9InstallationTo install this tool, you can use pip:python -m venv ~/w2j/venv
source ~/w2j/venv/bin/activate
pip install w2jAlternatively, you can install the package using the bundled setup script:python -m venv ~/w2j/venv
source ~/w2j/venv/bin/activate
python setup.py installUsageIf your WizNote user id isyouremail@yourdomain.com, the token in Joplin Web Clipper isaa630825022a340ecbe5d3e2f25e5f6a, and Joplin run on the same computer, you can use wiz2joplin like follows.Convert all of documents from wizNote to Joplin:w2j-o~/w2j-w~/.wiznote-uyouremail@yourdomain.com-taa630825022a340ecbe5d3e2f25e5f6a-aConvert location/My Notes/reading/and all of the children documents from WizNote to Joplin:w2j-o~/w2j-w~/.wiznote-uyouremail@yourdomain.com-taa630825022a340ecbe5d3e2f25e5f6a-l'/My Note/reading/'-rUsew2j --helpto show usage for w2j:usage: w2j [-h] --output OUTPUT --wiz-dir WIZNOTE_DIR --wiz-user
           WIZNOTE_USER_ID --joplin-token JOPLIN_TOKEN
           [--joplin-host JOPLIN_HOST] [--joplin-port JOPLIN_PORT]
           [--location LOCATION] [--location-children] [--all]

Migrate from WizNote to Joplin.

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT, -o OUTPUT
                        The output dir for unziped WizNote file and log file.
                        e.g. ~/wiz2joplin_output or
                        C:\Users\zrong\wiz2joplin_output
  --wiz-dir WIZNOTE_DIR, -w WIZNOTE_DIR
                        Set the data dir of WizNote. e.g ~/.wiznote or
                        C:\Program Files\WizNote
  --wiz-user WIZNOTE_USER_ID, -u WIZNOTE_USER_ID
                        Set your user id(login email) of WizNote.
  --joplin-token JOPLIN_TOKEN, -t JOPLIN_TOKEN
                        Set the authorization token to access Joplin Web
                        Clipper Service.
  --joplin-host JOPLIN_HOST, -n JOPLIN_HOST
                        Set the host of your Joplin Web Clipper Service,
                        default is 127.0.0.1
  --joplin-port JOPLIN_PORT, -p JOPLIN_PORT
                        Set the port of your Joplin Web Clipper Service,
                        default is 41184
  --location LOCATION, -l LOCATION
                        Convert the location of WizNote, e.g. /My Notes/. If
                        you use the --all parameter, then skip --location
                        parameter.
  --location-children, -r
                        Use with --location parameter, convert all children
                        location of --location.
  --all, -a             Convert all documents of your WizNote.Log filePlease read log filew2j.logunder --output directory to check the conversion states.源码分析相关文章从 WizNote 为知笔记到 Joplin（上）从 WizNote 为知笔记到 Joplin（下）WizNote 为知笔记 macOS 本地文件夹分析使用腾讯云对象存储(COS)实现Joplin同步配置 Joplin Server 实现同步
Package: w2m
DESCRIPTIONw2m is essentially a Python 2.7 module providing the W2M class. The W2M classis a www spider which explores a subset of the www, extracts the adjacencymatrix of the oriented graph, and saves it as a GNU-Octave .mat file. If numpyand matplotlib are available, it computes the spectrum of the adjacency matrixand plots the result. The list of vertices and an image of the matrix are alsoproduced. The file w2m.py can be used as a module or as a script handlingcommand line arguments. W2M uses threading. W2M does not depend on modulesoutside the standard library, except numpy and matplotlib, which are optional.This makes more easy the possible 2to3 transition.COPYRIGHT and LICENSECopyright (c), 2011, 2012, Djalil CHAFAI http://djalil.chafai.net/This program is free software, protected by the following license:GNU General Public License (GPL)FILE LISTw2m.py          Python module (source)examples/       examples on small Wikipedias (Kabyle and Mahori)setup.py        setup file for distutils http://docs.python.org/distutils/PKG-INFO        package information file produced by setup.py (distutils)TYPICAL USAGE AS A SCRIPTchmod +x w2m.py./w2m.py --help# and if you use the Bash shell:/w2m.py --start someurl > output.lst 2>&1 & tail -f output.lstDEPENDENCIESWritten for Python 2.7. Some outputs require numpy and matplotlib modules.For Debian GNU/Linux wheezy: apt-get install python-matplotlibVERSION, CHANGELOG, HISTORY, TODOSee w2m.py file.LATEST VERSIONSee http://pypi.python.org/pypi/w2m/EOF
Package: w2n2w
w2n2wConvert words to numbers and back again.Compatible with Python 3.6 and up.Why is this a thing?There was one repo calledword2numberbyAkshay Nagpalwhich converted words to numbers.
There was another repo callednum2wordbyMUKESHSIHAGwhich converted numbers to words.To my knowledge there wasn't one that did both (also word2number appears un-maintained).So I forked and re-wrote word2number and here we are.What does it do?Converts number words like "forty three" to integers/floats.importw2n2wprint(w2n2w.word_to_num('forty three'))>43print(w2n2w.word_to_num('twenty-two point nine one'))>22.91print(w2n2w.word_to_num(('one hundred and twenty three million'' four hundred and fifty six thousand'' seven hundred and eighty nine')))>123456789print(w2n2w.word_to_num('negative twelve'))>-12print(w2n2w.word_to_num('12 thousand and thirty 8'))>12038print(w2n2w.word_to_num('seventy first'))>71It can also convert numbers into wordsimportw2n2wfrompprintimportpprintprint(w2n2w.num_to_word(1234))>'one thousand two hundred and thirty four'# use pprint here to make long line more readablepprint(w2n2w.num_to_word(123456789))>('one hundred and twenty three million four hundred and fifty six thousand '>'seven hundred and eighty nine')print(w2n2w.num_to_word(1.52))>'one point five two'print(w2n2w.num_to_word(-0.999))>'negative zero point nine nine nine'print(w2n2w.num_to_word(0))>'zero'In theory this library can handle any real number (positive or negative) but for numbers greater than or equal to one undecillion (10^36) you will start to face issues, as these numbers are represented in terms of the highest order of magnitude this library knows.So 10^36 is represented as10^33 * 1000or 'one thousand decillion'.Things to bear in mindSome examples may produce unexpected behaviour.importw2n2wprint(w2n2w.word_to_num('one two three'))>6print(w2n2w.word_to_num('thousandth'),w2n2w.word_to_num('one thousandth'))>1000,0.001print(w2n2w.word_to_num('third'),w2n2w.word_to_num('one third'))>3,0.3333333333333print(w2n2w.word_to_num('forty seventh'),w2n2w.word_to_num('forty sevenths'))>47,5.7142857142857135
Package: w2widget
w2widgetWidget for exploring and sampling words from text data through word2vec models in order to construct topic dictionaries.Package contentThew2widgetpackage contains two modules:doc2vec.pywidget.pyExamplesIn thewidget_example.ipynbyou can play with the widget from pretrained data fromReutersdataset.If you want to see an example of the data-workflow generating the necessary input, check outworkflow_example.ipynb.Doc2VecThis module helps with calculating and handling doc2vec. The approach applied is that every document's vector is calculated by taking a weighted (ie. based on inverse frequencies) average of the document's word vectors.fromw2widget.doc2vecimportcalculate_inverse_frequency,Doc2Vec# Calculate word weigts from inverse frequencyword_weights=calculate_inverse_frequency(document_tokens)# Initiate the modeldv_model=Doc2Vec(wv_model,word_weights)# Add documents and calculated the document vectorsdv_model.add_doc2vec(document_tokens)# reduce the dimensionsdv_model.reduce_dimensions()# Store the embeddingstwo_dim_doc_embedding=dv_model.TSNE_embedding_arrayWidgetThis widget module displays the results from:A gensim word2vec model,it's 2-dimensional embedding (ie. TSNE).The custom implemented doc2vec model,it's 2-dimensional embedding (ie. TSNE).A list of tokenized documents with whitespaces andoptionally a list of initial search wordsfromw2widget.widgetimportWidgetwv_widget=Widget(wv_model,two_dim_word_embedding,tokens_with_wsdv_model=None,two_dim_doc_embedding=None,initial_search_words=[],)wv_widget.display_widget()You can save the topics to ajsonfile from the widget, or access them from the dictionary stored inwv_widget.topics.
Package: w3af-api-client
REST API client for w3afLaunch web application security scans usingw3af’s REST APIInstallation$ pip install --upgrade w3af-api-clientUsageThe REST API client allows you to run scans and access results and log files.from w3af_api_client import Connection, Scan

# Connect to the REST API and get it's version
conn = Connection('http://127.0.0.1:5000/')
print conn.get_version()

# Define the target and configuration
scan_profile = file('/path/to/profile.pw3af').read()
target_urls = ['http://example.target']

scan = Scan(conn)
scan.start(scan_profile, target_urls)

# Wait some time for the scan to start and then
scan.get_urls()
scan.get_log()
scan.get_findings()Source codeDevelopers love code, here’s all you need to understand, use and extend the client:w3af’s REST API serverw3af’s REST API clientReporting bugsReport your issues and feature requests inw3af-api-client’s issue
trackerand we’ll
be more than glad to fix them.Pull requests are more than welcome!
Package: w3bstream-client-python
w3bstream-client-pythonThe Python Client for W3bstream integration on serverGetting startedInstallw3bstream-client-pythonviapip3pip3installw3bstream-client-pythonExample CodePublish Event Synchronouslyfromw3bstream_client_pythonimportClient,Header# the http_route, project and api_key are obtained on W3bstream-Studioclient=Client("http_route","api_key")# device_id is the identity for the device# payload can be an empty string if served as a heartbeatheader=Header('device_id')rsp=client.publish_event_sync(header,b'payload')print(rsp.text)Publish Event Asynchronouslyclient.publish_event(header,b'payload')
Package: w3g
This is a single module package that contains everything that is needed to
read in the Warcraft 3 replay file format*.w3g.  W3G is a custom
binary format.  The benefits of this are that the files are small, even for
very long games.  The downside is that for them to be meaningfully a lot of
extra data needs to be provided (as is done here for you) for these files
to be meaningfully deciphered.The replays basically amount to a bunch of metadata (map, players, etc) and a
big event list.  The file parser here provides you with access to this data
as well as some post-processed metrics, such as actions-per-minute (APM).The API should be easy to use and figure out. Classes and attributes are named in a
sane way. Here is an example of usage:import w3g
f = w3g.File('replay.w3g')

winner = f.winner()
print(winner)

f.print_apm()You can also use this file in script mode to print out the entire game and
its stats:$ ./w3g.py  replay.w3gIf you have any questions or issues, please email me or leave an issue on the
issue tracker./scopzout
Package: w3htmlmaker-math-s
This is a HTML maker for articles.If you have a text and need to publish it you can use this pkg.
You install with:pip install -i https://test.pypi.org/simple/ w3htmlmaker-math-s==0.0.3And then, ifais the Object, you can define:a_html = HtmlArticle(a.content, a.title).get_html()a_html now contains a valid HTML, using w3.css library.
Now you just have to senda_htmlto your template, or write it down in a HTML file.
Package: w3mo
Overvieww3mo is a pure python API wrapper for wemo devicesInstallationpip3 install w3moUsageInteractive "Shell"fromw3moimportw3mow3mo.interactive()#this mode will launch a "shell" to interact with discovered devices on your networkDevice Discoveryfromw3moimportw3mo#returns a dictionary of devices with the device name as the key#{'name':{'ip':device_ip,'obj':instantiated w3mo control class}}x=w3mo.discover(return_type=dict)#returns a list of devices#[{'name':'device_name_1','ip':'device_ip':,'obj':instantiated w3mo control class}]x=w3mo.discover(return_type=list)#sets the timeout in seconds that the script will wait for a thread to join. This basically improves speed with the understanding that threads will still be running in the background if set too short. Default is 5s.x=w3mo.discover(join_timeout=5)#prints verbose debug data to the console. Default is False.x=w3mo.discover(debug=True)Device Controlfromw3moimportw3moimporttimedevices=w3mo.discover(return_type=list)#define device as the control class instantiation at index 0 of devicesdevice=devices[0]['obj']#device name and state are set at instantiation and updated throughout useprint("Device Name ={}".format(device.name))print("Device State ={}".format(device.state))#turn ondevice.set_state(1)#time.sleep(.25)#turn off#device.set_state(0)Supported DevicesNOTE: supported just means I had these devices / firmwares on hand for testing. Other devices SHOULD work, if you find something that doesn't fix it and submit a pull request!Wemo Mini Smart Plug - F7C063Firmware VersionSupportedWeMo_WW_2.00.11452.PVT-OWRT-SNSV2:heavy_check_mark:WeMo_WW_2.00.11420.PVT-OWRT-SNSV2:heavy_check_mark:WeMo_WW_2.00.11326.PVT-OWRT-SNSV2:heavy_check_mark:Wemo WiFi Smart Light Switch - WLS040Firmware VersionSupportedWeMo_WW_2.00.11451.PVT-OWRT-LIGHTV2:heavy_check_mark:WeMo_WW_2.00.11395.PVT-OWRT-LIGHTV2:heavy_check_mark:Related Projectssimple Kivy based UIelectron and web server based UI
Package: w3mo-kivy
Overvieww3mo-kivy is a simple Kivy UI for thew3moprojectDISCLAIMER: this UI isn't built in any way for distribution. If you'd like that, please submit a pull request!Installation & UsageThe below install doesn't allow you to run the UI directly from the terminal. You must clone the repo and run it with python.pip3installw3mo-kivyThis operation runs a simple Kivy user interface that populates a list with all found devicesgitclonehttps://github.com/mghelton/w3mo_kivycd./w3mo_kivy
pip3install.
python3ui/ui.py
Package: w3multicall
Install withpip install w3multicallhttps://pypi.org/project/w3multicall/Want to support this project ? You can help us by:Delegating AVAX to our Avalanche nodeNodeID-4btZGj8TmrycK22kwgBK5wJEFighAFWiZMaking a donation to0xA68fBfa3E0c86D1f3fF071853df6DAe8753095E2This software is derived frommulticall.py.
However,multicall.pyis built onasyncioanddoes not support multi-threadingThis implementation fixes that.W3MulticallBuild and install locallyFrom the root folderw3multicalldopip install .to build and install the package in the current python environmentMulticall Smart ContractMulticallsmart contract are deployed on numerous chains and can help reduce the strain
put on RPC by order of magnitude bybatchingmultiple requests into a single one.Simple Multicallfrom web3 import Web3
from w3multicall.multicall import W3Multicall

w3 = Web3(Web3.HTTPProvider(rpc))

w3_multicall = W3Multicall(w3)

w3_multicall.add(W3Multicall.Call(
    '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',  # USDC contract address
    'balanceOf(address)(uint256)',  # method signature to call
    '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045')  # vitalik.eth
)

results = w3_multicall.call()

print("Vitalik holds {:.2f} USDC".format(results[0]/10**6))See full exampleMultithread Multicallw3_pool = W3Pool([
        W3(Web3(Web3.HTTPProvider('https://eth-rpc.gateway.pokt.network')), 5),
        W3(Web3(Web3.HTTPProvider('https://ethereum.publicnode.com')), 5),
        W3(Web3(Web3.HTTPProvider('https://rpc.flashbots.net/')), 5)
    ], logger)

executor = W3MulticallExecutor(w3_pool, processes=len(w3_pool.w3s))

bayc_futures = []
azuki_futures = []
moonbird_futures = []
for i in range(1, 10):

    bayc_futures.append(executor.submit(W3Multicall.Call(
        '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D',  # BAYC NFT contract address
        'ownerOf(uint256)(address)',
        i)))

    azuki_futures.append(executor.submit(W3Multicall.Call(
        '0xED5AF388653567Af2F388E6224dC7C4b3241C544',  # Azuki NFT contract address
        'ownerOf(uint256)(address)',
        i)))

    moonbird_futures.append(executor.submit(W3Multicall.Call(
        '0x23581767a106ae21c074b2276D25e5C3e136a68b',  # Moonbird NFT contract address
        'ownerOf(uint256)(address)',
        i)))        
    
for i in range(len(bayc_futures)):
    print("The owner of the BAYC Nº{} is {}".format(i + 1, bayc_futures[i].get()))

for i in range(len(azuki_futures)):
    print("The owner of the Azuki Nº{} is {}".format(i + 1, azuki_futures[i].get()))

for i in range(len(moonbird_futures)):
    print("The owner of the Moonbird Nº{} is {}".format(i + 1, moonbird_futures[i].get()))See full example
Package: w3storage
py-w3This is a reimplementation of the web3.storage HTTP api.There is an existing implementation athttps://pypi.org/project/web3storage, but at the time of writing it did not have an
associated public source repository.This project's source repository is athttps://github.com/xloem/py-w3storage, and auto-merging of pull requests is enabled.The API is open to any changes or improvements.The official library athttps://www.npmjs.com/package/web3.storagecould be used as a baseline for such improvements.examplesimportw3storagew3=w3storage.API(token='w3-api-token')some_uploads=w3.user_uploads(size=25)# limited to 100 MBhelloworld_cid=w3.post_upload(('hello_World.txt','Hello, world.'))readme_cid=w3.post_upload(('README.md',open('README.md','rb')))# larger files can be uploaded by splitting them into .cars.