Saravanan666/pypi-org huggingface dataset:
Package: woopy
WoopyWoopy is a minimal Python API for trading on WooTrade. It is a Python interface for theWooTrade API.
Woopy is an alternative topython-wootrade, which is computationally intensive and appears unstable at Windows platforms.
This has been the mean reason for the development of Woopy.One of the reasons for the instability of python-wootrade is the unnecessary code complexity, which makes is hard to debug.
It seems that python-wootrade is a stripped down version ofpython-binance.
The source code of python-binance is equally complicated.Woopy avoids all unnecessary complications, which leaves a simple module that is easy to maintain.
Woopy has only two dependencies, namelyrequestsandwebsockets.PrerequisitesFirst of all, you need an account at WooTrade.Next, you need to register your application by creating anAPI Key and Secret, which can be found at Account > Subaccounts and API.Then, you fetch yourApplication ID, wich can be found at Account > Subaccounts and API.InstallationOptionally create (python -m venv venv) and activate (venv\Scripts\activate) a virtual environment. Then, runpip install woopyTest your installation by running the following script (with your credentials)import woopy

woo_key = "my-woo-key"
woo_secret = "my-woo-secret"
woo_app_id = "my-app-id"

symbol = 'SPOT_BTC_USDT'

topics = {
    f'wss://wss.woo.org/ws/stream/{woo_app_id}': [f'{symbol}@trade'],
    f'wss://wss.woo.org/v2/ws/private/stream/{woo_app_id}': ['positioninfo']
}

for msg in woopy.receive(topics, woo_key, woo_secret):
    print(msg)You should then see a stream of messages containing trade information and private information on your position.It is preferrable to store the Application ID, API Key and API Secret as environment variables, rather than storing them as plaintext in your source code.
This prevents accidental disclosure of your credentials. You can retreive an environment variable viaos.getenv('name-of-variable').ConceptsThere are two ways to communicate with WooTrade, namely via HTTP requests and via websockets.HTTPThe HTTP requests are rather straightforward and can be called viaget(),post(), anddelete().
The required arguments can be found in theWooTrade API reference.WebsocketsThe websockets interface is implemented as an iterablerecv_all(), which requires a dictionary of topics as one of its arguments.
The keys of this dictionary are public and private endpoints of WooTrade.
The values of this dictionary are their respective topics, as specified by theWooTrade API reference.Therecv_all()iterator handles all connection errors andautomatically reconnectsto the disconnected websocket.
Such disconnects can be caused by an interrupted internet connection, or just when WooTrade decides that the session was long enough.For simplicity, Woopy assumesstatic topics, i.e., all topics are known from the start.Happy trading!
Package: woost
Woost is a Content Management System designed from the ground up  to be able
to publish arbitrary data models, including content in multiple languages. Some
of its features include:
“Use inheritance, relations and validations to define complex modelsAutomatically generate forms and listings for your models from a schema
descriptionTranslate your content into multiple languages, edit translations side by
sideCompatible with lots of popular Python templating enginesPlace arbitrarily complex access restrictionsExtension framework, with several built-in extensions (comments,
ecommerce, integration with online services, and many others)
Package: woostream
woostreamStream fills & position updates from Woo X.Installationwoostreamis available as aPython package on PyPIand can be installed as:pip install woostreamHow to runwoostreamis executable as a command line utility:# Example command, outputting to the shellpython-mwoostream\--networktestnet\--application-id6a9b8f2b-3969-4c96-b127-b6649b7d976d\--api-public-keyr0Ln7xEfpO/lEubPuEE7ug==\--api-secret-keyXTXL4TUAN6WLCPLXAIYNYTL2MPLPLearn how to getapplication-id,api-public-keyandapi-secret-keyhere.networkcan be eithermainnetortestnet; the former points tox.woo.org, whilst the latter tox.staging.woo.org.Telegram forwardingIt's possible to output to a Telegram channel in addition to the shell, by specifyingtelegram-tokenandtelegram-chat-id.Learn how to get atelegram-tokenhere.You can get atelegram-chat-idby logging intoweb.telegram.org/k, selecting a group chat you control and fetching the chat ID from the URL bar:Here the chat ID is -855125383.Then replace the command-line arguments accordingly:python-mwoostream--networktestnet\--application-id6a9b8f2b-3969-4c96-b127-b6649b7d976d\--api-public-keyr0Ln7xEfpO/lEubPuEE7ug==\--api-secret-keyXTXL4TUAN6WLCPLXAIYNYTL2MPLP\--telegram-token[TELEGRAM_TOKEN]\--telegram-chat-id[TELEGRAM_CHAT_ID]Note that that Telegram's API has a rate limit of 30 messages per second - in any case, messages will continue to be broadcasted to the shell.
Package: woothee
The Python implementation of Project Woothee, which is multi-language
user-agent strings parsers.https://github.com/woothee/wootheeInstallation$ pip install wootheeUsageParsing user-agentimportwootheewoothee.parse("Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)")# => {'name': 'Internet Explorer', 'category': 'pc', 'os': 'Windows 7', 'version': '8.0', 'vendor': 'Microsoft', 'os_version': 'NT 6.1'}Parse user-agent string and returns a object with keysname,category,os,version,vendorandos_version.For unknown user-agent (or partially failed to parse), result objects
may have value ‘UNKNOWN’.categorylabels of user terminal type, one of ‘pc’, ‘smartphone’, ‘mobilephone’, ‘appliance’, ‘crawler’ or ‘misc’ (or ‘UNKNOWN’)namethe name of browser, like ‘Internet Explorer’, ‘Firefox’, ‘GoogleBot’versionversion string, like ‘8.0’ for IE, ‘9.0.1’ for Firefix, ‘0.2.149.27’ for Chrome, and so onosex: ‘Windows 7’, ‘Mac OSX’, ‘iPhone’, ‘iPad’, ‘Android’This field used to indicate cellar phone carrier for category ‘mobilephone’vendoroptional field, shows browser vendoros_versionoptional field, shows version of operating systemsFinding crawlers (almost all, not all) in fastwoothee.is_crawler('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)')# => FalseTry to see useragent’s category is ‘crawler’ or not, by casual(fast)
method. Minor case of crawlers is not tested in this method. To check
crawler strictly, usewoothee.parse(str)['category']== 'crawler'.AuthorsUEDA Tetsuhiro (najeira)TAGOMORI Satoshitagomoris@gmail.comtell-kffk2005@gmail.comLicenseCopyright 2012- TAGOMORI Satoshi (tagomoris)Licensed under the Apache License, Version 2.0 (the “License”); you may
not use this file except in compliance with the License. You may obtain
a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.History1.10.1(Aug 8, 2019)#16 drop support Python3.4.1.10.0(Apr 14, 2019)#15 Support for v1.10.01.8.0(Jul 5, 2018)#14 Drop support Python 2.6 and Python 3.2.#13 Add support for Yandex Browser. Thanks to hhatto .1.7.0(May 7, 2017)#12 Release v1.7.0Add support for WebView on Android.Add support for curl.Add support for trendictionbot crawler.Add support for Yeti 1.1.Compatible with Python 3.6.Caution. We’ll drop Python2.6 and python3.2 support in the next version.1.5.0(Aug 16, 2016)#11 Support BingPreviewThanks to taise.1.4.0(May 17, 2016)Add support for Vivaldi1.3.0(Jan 7, 2016)Add support for Firefox for iOS1.2.0(Aug 16, 2015)Add support for TwitterbotAdd support for webviews of mobile devicesAdd support for Windows 10 and Edge browserAdd support for BlackBerry101.1.0(Mar 1, 2015)#9 Test blank casesThanks to yuya-takeyama.1.0.0(Jan 20, 2015)First release
Package: wootrade-sdk
wootrade-sdk-pyNote: not maintained anymore, just use the awesome ccxtapi doc:https://docs.woo.org/#general-informationFork fromhttps://github.com/wanth1997/python-wooXto make it work.Install deppoetryaddwootrade_sdkUsagepoetryinstall
poetryshell# enter the virtual envblack.# format codecdexamples
pythonget_all_symbols_price_change_percentage.py
Package: wooty-woot
wooty_wootA pkg that makes wooty_woot notebooksThis extension is composed of a Python package namedwooty_wootfor the server extension and a NPM package namedwooty_wootfor the frontend extension.RequirementsJupyterLab >= 3.0InstallTo install the extension, execute:pipinstallwooty_wootUninstallTo remove the extension, execute:pipuninstallwooty_wootTroubleshootIf you are seeing the frontend extension, but it is not working, check
that the server extension is enabled:jupyterserverextensionlistIf the server extension is installed and enabled, but you are not seeing
the frontend extension, check the frontend extension is installed:jupyterlabextensionlistContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the wooty_woot directory# Install package in development modepipinstall-e.# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Server extension must be manually installed in develop modejupyterserverextensionenablewooty_woot# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstall# Server extension must be manually disabled in develop modejupyterserverextensiondisablewooty_woot
pipuninstallwooty_wootIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedwooty_wootwithin that folder.Testing the extensionServer testsThis extension is usingPytestfor Python code testing.Install test dependencies (needed only once):pipinstall-e".[test]"To execute them, run:pytest-vv-rap--covwooty_wootFrontend testsThis extension is usingJestfor JavaScript code testing.To execute them, execute:jlpm
jlpmtestIntegration testsThis extension usesPlaywrightfor the integration tests (aka user level tests).
More precisely, the JupyterLab helperGalatais used to handle testing the extension in JupyterLab.More information are provided within theui-testsREADME.Packaging the extensionSeeRELEASE
Package: wop
WhatsOpt command line interfaceCommand line interface to interact with WhatsOpt web application. SeeWhatsOpt documentation.CitationRémi  Lafage,  Sébastien  Defoort,  and  Thierry  Lefèbvre. Whatsopt: a web application for multidisciplinary design analysis and optimization. In 20th AIAA/ISSMO Multidisciplinary Analysis and Optimization Conference, Dallas, United States, 2019DOI:10.2514/6.2019-2990InstallationpipinstallwopUsagewop--helpwop<COMMAND>--helpLicenseCopyright 2020 Rémi LafageLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: wopa
我爬 Wopa我爬 Wopa一個給研究者使用的簡單便利資料搜索工具本工具透過網路爬蟲獲取所需研究資料，為撰寫論文、研究等非商業行為使用。同時，若有使用此工具之論文、研究，歡迎提供展示於此git，供其他學術使用參考。🌼 目前的功能給予特定參數後，程式會自動抓取資料，完成後會在目錄下新增對應的資料夾，並將Excel檔儲存至資料夾內。新聞自由時報（搜索）中國時報（搜索）蘋果新聞網（搜索）聯合新聞網論壇DcardPTT更多其他正在開發中，也可以幫忙貢獻唷！如何使用安裝$pipinstallwopa參數說明參數解釋範例預設keyword關鍵字'蔡英文'Nonestart_time起始時間'20220612'Noneend_time結束時間'20220614'NonepageNumber從第幾頁開始抓資料1第1頁waitSec資料抓取時間間隔33秒自由時報 (關鍵字)frompapaimportLTNdf=LTN.get(keyword,start_time,end_time,pageNumber,waitSec)# df 回傳 DataFrame# 自動產生目錄LTN資料夾，儲存excel檔中國時報 (關鍵字)frompapaimportCTdf=CT.get(keyword,pageNumber,waitSec)# df 回傳 DataFrame# 自動產生目錄CT資料夾，儲存excel檔貢獻歡迎協作，請使用 GitHub issue 以及 Pull Request 功能來協作。
Package: wopeditor
python-wopeditor docs onlinepython-wopeditor docs on GitLabwopeditor docs offlineSee docs/README.md and other files in docs/ directory.You can also render docs into HTML using mkdocs:pip install mkdocs
mkdocs build
browser site/index.htmlread thedocsand have a nice magic ᕕ( ᐛ )ᕗ
Package: wopmars
WopMars is a database-driven workflow manager written in python similar to GNU Makefile or Snakemake.
The difference is that the definition file of WopMars takes into account input/output SQLITE table defined as python
paths to SQLAlchemy models.You can install the latest WopMars version via “pypi”:pipinstallwopmarsRun a quick example:wopmarsexamplecdexamplepipinstall-e.wopmars-Dsqlite:///db.sqlite-wWopfile.yml-vIf there were not errors, you can look at the content of the sqlite db.$sqlite3db.sqlite'.tables'Piecewom_TableInputOutputInformationPieceCarwom_TableModificationTimewom_Executionwom_ToolWrapperwom_FileInputOutputInformationwom_TypeInputOrOutputwom_Option$sqlite3db.sqlite"select * from Piece limit 5"1|UC8T9P7D0F|wheel|664.242|2BPN653B9D|engine|550.493|T808AHY3DS|engine|672.094|977FPG7QJZ|bodywork|667.235|KJ6WPB3N56|engine|678.83TheWopMars documentationwith user guide and
API reference is hosted at Read The Docs.
Package: woptics
wopticsWave optics in Python.
Simulates light propogation through free-space, optical fibres, etc. using the scalar-wave approximation.InstallpipinstallwopticsUsageimportwopticsContributingContributions are welcome!
Please readCONTRIBUTING.mdbefore submitting a PR.VersioningWe useSemVerfor versioning.
Currently the project does not have a stable release, but once it does, have a look on thetags page.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: worchestic
Worchestic is a controller for signal switch fabrics, for connection
orientated switching, such as traditional telephone systems or video
routing matrices. Worchestic is agnostic on the type of signal being
routed over the fabric.Worchestic abstracts the actual hardware control to driver classes,
we send the control commands to the fabric, but Worchestic can track
use of outputs from cascaded individual switches and route companion
signals together across distinct fabrics. Such as USB, and HDMI in
a KVM switch which is the initial use case Worchestic is targetting.
Package: word2emoji
word2emojiThis simple module exposes one method to convert a single, english
word to an emoji:import word2emoji

print(word2emoji("beer"))

>>> 🍺It works by way of a simple lookup table. You could use a pretrained
model, but given that there are only a limited set of words in English
it doesn't seem worth it. To build the look up table you need to run
a number of steps:Create the training setThetraining.txtfile contains a simple set to train on.test_to_training.pywill convert it totraining_prepared.jsonlwhich
can be consumed by openai. Before you can get started, set your OPENAI_KEY:export export OPENAI_API_KEY="sk-urshouldgohere"You can then train fine tune the model. I use davinci:openai api fine_tunes.create -t training_prepared.jsonl -m davinciThis will take a few minutes (it does require the )Creating the lookup tableNow you are ready to create the lookup. This is done usingpython create_db.pyUpdate the name of the model there if you want to use your own and
delete/updatewords.json- this contains a dictionary from
word-stem to (word, emoji) pair.Once you are happy with your new db, you can run:python flatten_db.py
Package: word2html
# Convert a Word Doc to htmlTo install, run:pip install word2htmlThis will give you a command-line script, which you can run:$ word2html /path/to/MyGloriousDoc.docxThis will give you a new file,/path/to/MyGloriousDoc.html, that’s (hopefully)
decent-looking html.## Note on tests & versionsThis project has NO TESTS! (feel free to add some of you think it should).This was last used with python 3.9 and the dependency versions listed in [requirements.txt](https://github.com/bradmontgomery/word2html/blob/master/requirements.txt)## Note on LicensesWhile this code is MIT-licensed, it uses boty pypandoc and pytidylib, both of
which depend on other software that may not be MIT-licensed and must be installed
for this to work.[pytidylib](https://pypi.python.org/pypi/pytidylib/) is available under the
MIT license, and [Tidy](http://tidy.sourceforge.net/#license) is available
under an MIT-like license[pypandoc](https://pypi.python.org/pypi/pypandoc/) is available under the MIT
license, while [Pandoc](http://pandoc.org/) is released under the GPL.
Package: word2keypress
I made this as a submodule for my project on correcting password typos. I found this very cool, and
might be useful in many scenarios where one has to find vairations of word due to mistyping.Here we define typo as purely mistyping a key, and not due to ignorance. Hence, finding possible
typos of a word require converting the word into sequence of key presses. This module provides those
functionality to convert word into and from sequence of key presses. Also, given a word find the
possible typo of that word tuned to the typos due to mistyping.DependencyRight now it needs cython. I will remove it in future. * Cython.Install$pipinstallword2keypress# or$pythonsetup.pyinstallHow to Use?Refer to theHowToRun.ipynbfile.fromword2keypressimportdistance,Keyboardkb=Keyboard(u'US')# making unicode is mandatory (weird Cython)kseq=kb.word_to_keyseq('Password')print"\nRaw sequence:",repr(kseq)print"\nReadable sequence:",repr(kb.print_keyseq(kseq))print"\nkeyseq->word:",kb.keyseq_to_word(kseq)print"\ndistance:",distance('Password1','PASSWORD1')How to test/develop ?(For myself, as I keep forgetting how to deal with cython. Stupid Idea) Don’t forget to regenerate
thesrc/word2keypress/_keyboard.cfile in Option 1.$ python setup.py pytest      # Option 1
$ tox                         # Option 2
$ python -m pytest tests/     # Option 3In any case have to regenerate the_keyboard.cto test with the new code.
Package: word2num
word2num 💬 → 🔢word2numis a Python package for converting numbers expressed in natural language to numerical values. It supports:FractionsDecimalsNegative valuesLarge numbers into the quintillionsDigit sequencesFuzzy string matchingTable of Contents🛠️ Installation💻 Usage🐻 Fuzzy String MatchingDefault Fuzzy ThresholdCustom Fuzzy ThresholdDisable Fuzzy Matching🌐 Language Support🤝 Contributing📃 License🛠️ InstallationTo useword2num, you must first install it. You can do this using pip by running the following command in your terminal:pip install word2num💻 UsageOnce installed, you can useword2numto convert numbers expressed in natural language to numerical values. To parse a single string, use theword2numconvenience function:fromword2numimportword2numword2num("fifty-seven thousand four hundred and twenty-one")# 57421If you need to parse multiple strings, you can create your own instance ofWord2Numand call itsparsemethod:fromword2numimportWord2Numw2n=Word2Num()w2n.parse("one hundred and one")# 101w2n.parse("seventeen billion")# 17000000000w2n.parse("negative eight")# -8w2n.parse("half")# 0.5w2n.parse("one and three quarters")# 1.75w2n.parse("one three three seven")# 1337Note that these functions will returnNoneif a valid numerical value couldn't be interpreted.🐻 Fuzzy String Matchingword2numuses fuzzy string matching to help parse misspelled number words.Default Fuzzy ThresholdBy default,word2numuses a fuzzy threshold of 80, which means that it will match a word to a number if the fuzzy score is 80 or higher.Custom Fuzzy ThresholdYou can change the fuzzy threshold by passing afuzzy_thresholdparameter to theword2numfunction or to theWord2Numclass constructor:# Using the word2num functionword2num("soxteeeen",fuzzy_threshold=60)# [16]# Using the Word2Num classw2n=Word2Num(fuzzy_threshold=60)w2n.parse("twoo hunrdered and twienty-too")# [222]Disable Fuzzy MatchingTo disable fuzzy matching (exact matching only), you can set thefuzzy_thresholdto 100:w2n=Word2Num(fuzzy_threshold=100)w2n.parse("two hundered and twinty-two")# None🌐 Language SupportEnglishSpanishWe'd love to add support for other languages. Contributions are more than welcome, so if you're interested in contributing, see the "Contributing" section below!🤝 ContributingContributions toword2numare more than welcome! If you'd like to contribute, please follow these guidelines:Make sure the tests pass by runningpytestin the root directory of the repository.If appropriate, add new tests to cover your changes.Follow the existing code style and conventions.Create a pull request with your changes.📃 Licenseword2numis released under the MIT License. SeeLICENSE.txtfor more information.
Package: word2number
Word to NumberThis is a Python module to convert number words (eg. twenty one) to numeric digits (21). It works for positive numbers upto the range of 999,999,999,999 (i.e. billions).InstallationPlease ensure that you haveupdated pipto the latest version before installing word2number.You can install the module using Python Package Index using the below command.pipinstallword2numberMake sure you install all requirements given in requirements.txtpipinstall-rrequirements.txtUsageFirst you have to import the module using the below code.
.. code-block:: pythonfrom word2number import w2nThen you can use theword_to_nummethod to convert a number-word to numeric digits, as shown below.>>>printw2n.word_to_num("two million three thousand nine hundred and eighty four")2003984>>>print(w2n.word_to_num('two point three'))2.3>>>print(w2n.word_to_num('112'))112>>>print(w2n.word_to_num('point one'))0.1>>>print(w2n.word_to_num('one hundred thirty-five'))135>>>print(w2n.word_to_num('million million'))Error:Redundantnumber!Pleaseenteravalidnumberword(eg.twomilliontwentythreethousandandfortynine)None>>>print(w2n.word_to_num('blah'))Error:Novalidnumberwordsfound!Pleaseenteravalidnumberword(eg.twomilliontwentythreethousandandfortynine)NoneBugs/ErrorsPlease ensure that you have updated pip to the latest version before installing word2number.If you find any bugs/errors in the usage of above code, please raise an issue throughGithub. If you don’t know how to use Github or raise an issue through it, I suggest that you should learn it. Else, send an email toakshay2626@gmail.comwith a clear example that can reproduce the issue.ContributorsBen Batorsky (bpben)Alex (ledovsky)Tal Yarkoni (tyarkoni)ButteredGroove (ButteredGroove)