Saravanan666/pypi-org huggingface dataset:
Package: wica
PyWica - Wica Python APITable of ContentsIntroductionInstallationQuick-start GuidDocumentationDependenciesContributeProject Changes and Tagged ReleasesDeveloper NotesContactIntroductionThis project/package aims to provide a simple python interface to the wica-http server.
Check out the async branch to get the async version of the packageInstallationInstall with pippipinstallwicaQuick-start GuideimportasyncioimporttimefromwicaimportWicaStreamasyncdefsimple_example_blocking_io():"""A simple example of how to use WicaStream.In this example we are using asyncio, but you could use any other concurrency or parallel processing package,you just need the ability to interrupt the stream somehow!Check out the async version of this package!"""wica_stream=WicaStream(base_url="http://student08/ca/streams",channels=["MMAC3:STR:2"])defrun_stream():wica_stream.create()formessageinwica_stream.subscribe():print(message)defstop_stream():print("Starting to wait")time.sleep(5)print(wica_stream.destroy())# The following functions put the blocking functions into their own thread.asyncdefthread_run_stream():returnawaitasyncio.to_thread(run_stream)asyncdefthread_stop_stream():returnawaitasyncio.to_thread(stop_stream)returnawaitasyncio.gather(thread_run_stream(),thread_stop_stream())asyncdefmain():awaitsimple_example_blocking_io()if__name__=="__main__":asyncio.run(main())DocumentationCurrent Features:Custom Client to handle be able to extract last line of SSE with timestamp and message type.Simple functions to create, delete and subscribe to streamsBlocking IO (non-blocking versions available in async branch)Check out thewikifor more info!DependenciesrequestsContributeTo contribute, simply clone the project.Project Changes and Tagged ReleasesSee the Changelog file for further informationproject releases are available in pypiDeveloper NotesCurrently NoneContactIf you have any questions pleas contact 'niklas.laufkoetter@psi.ch'
Package: wicafe
wicafeAutomatic login utility of free Wi-Fi captive portalsSupported public Wi-Fi servicesWi2Excelsior CaffeSaint Marc CafeSan'yo Shinkansen (West Japan Railway)Tokai Shinkansen (Central Japan Railway)PrerequisitesPython 3.7+InstallFrom PyPI:$ pip install wicafeFrom GitHub (directly):$ pip install git+https://github.com/puhitaku/wicafeFrom GitHub (for development):$ git clone
$ pip install -e .[dev]Run$ wicafe
$ python -m wicafe  # alternative waywicafe begins to poll a remote host and automatically accepts the ToS of
the captive portal when a redirection is detected.DisclaimerRead and grant the Terms of Service of Wi-Fi services before using it!As stated in the license, I'm not liable for any claim and violation of the ToS :wink:
Package: wicc-wallet-utils
wicc_wallet_utils-pythonWaykiChain Wallet Utility Library for raw transaction generation and signing and BaaS Posting etc operationsWritten in PythonInstall via Pippip install wicc_wallet_utils==1.0.1Usage Referencehttps://pypi.org/project/wicc_wallet_utils/1.0.1/Project Packaging Guidehttps://packaging.python.org/tutorials/packaging-projects/
Package: wick
wickwick is a Python command line tool that automatically generates file I/O source code for working with binary data.Why?I was working on a project that involved reverse engineering file formats and I found that most data structures tend to be composed of several simpler data structures. I also noticed that the simpler structures were all very boilerplate. So I created this tool to write the simple structures for me, and I can do the more interesting work of composing them into the larger structure.Supported Target LanguagesC#JavaScriptPythonInstallation$pipinstallwickUsage$wickexample.hPythonWhatexactlydoes it do?Let's walk through a concrete example.Say we have binary data that is a sequence of records that are represented by a string name and an integer id. First we create a record.h file that contains a C struct representation of this data:// record.h// Simple RecordstructRecord{// Record namecharname[64];// Record id.unsignedcharid;};Then we runwickon the file:$wickrecord.hPythonWhich will then create a record.py file whose contents look like:# record.pyimportstructclassRecord:"""Simple Record objectAttributes:name: Record nameid: Record id."""format='<64sB'size=struct.calcsize(format)__slots__=('name','id')def__init__(self,name,id):self.name=name.split(b'\x00')[0].decode('ascii')iftype(name)isbyteselsenameself.id=id@classmethoddefwrite(cls,file,record):record_data=struct.pack(cls.format,record.name.encode('ascii'),record.id)file.write(record_data)@classmethoddefread(cls,file):record_data=file.read(cls.size)record_struct=struct.unpack(cls.format,record_data)returnRecord(*record_struct)Then we can import this code into Python anddo work.Read Datawithopen(path,'rb')asfile:rec=Record.read(file)Write Datawithopen(path,'wb')asfile:rec=Record(b'name',0)Record.write(file,rec)Unpack Lots of Dataimportstruct# Assuming the file only contains Record datawithopen(path,'rb')asfile:recs=[Record(*chunk)forchunkinstruct.iter_unpack(Record.format,file.read())]ContributingHave a bug fix or a new feature you'd like to see in wick? Send it our way! Please make sure you create an issue that addresses your fix/feature so we can discuss the contribution.Fork this repo!Create your feature branch:git checkout -b features/add-javascript-code-generatorCommit your changes:git commit -m 'Implemented Javascript code generator'Push the branch:git push origin add-javascript-code-generatorSubmit a pull request.Create anissue.LicenseMITSee thelicensedocument for the full text.
Package: wicked
wickedOverviewwicked is a compact syntax for doing wiki-like content linking and creation.Changelog1.1.12 (2014-10-13)Invalidate cache when object has been moved or copied.
[domruf]1.1.11 (2014-04-15)Fix tests to work with auto csrf protection.
[vangheem]1.1.10 (2012-12-15)Fix minor white space test failures in combination with chameleon.
[maurits]1.1.9 (2010-09-09)Avoid the undeclared libxml2/lxml test dependency with a simplistic regex.
[elro]1.1.8 (2010-07-02)Avoid using the deprecated five:implements directive.
[hannosch]Avoid any usage of zope.app packages.
[hannosch]Updated package metadata.
[hannosch]1.1.8alpha1 (2009-11-18)Don’t register WickedFilter for IATContent. All necessary
registratons are done for more specific Interfaces per content type
in wicked.plone.registration. Having an WickedFilter registered for
a content type (interface), but not the other required components
like ICacheManager, leads to ComponentLookupErrors.
Fixeshttp://dev.plone.org/plone/ticket/9597[csenger]Adjusted wicked.at.seeker.AdvQueryMatchingSeeker to no longer use
AdvancedQuery. Fixeshttp://dev.plone.org/plone/ticket/9398[esteele]Adjusted test setup to make sure that wicked.atcontent is registered as
a package before App.FactoryDispatcher’s _product_packages gets
memoized by Plone 4’s monkey patch optimization.
[davisagli]1.1.7 - 2009-06-20When creating a new content object (to which the wiki link already exists)
add the backlink to the new object, not to the context which can be
the object that contains the link in case @@wickedadd is used.
Fixeshttp://dev.plone.org/plone/ticket/8731[csenger]1.1.6super-massive black hole. Developed by Whit Morriss and contributors.
Details are unknown until 1.1.6 svn unreleased
Package: wicked-expressions
wicked-expressionsExtension of bolt-expressions written in Bolt.IntroductionThis is an extension of thebolt-expressionspackage. I highly recommend getting accustom to the original before using this one. This package is meant to build upon it by adding more functionality.fromwicked_expressions:apiimportScoreboard,Var,Floatfoo=Scoreboard('demo')['$foo']bar=Var(Float,3.14159)foo=123data_0=30iffoo==1:tellraw@a"foo == 1"else:tellraw@a"foo != 1"ifbar==3.14159:tellraw@a"yes :3"else:tellraw@a"no :<"Installationpipinstallwicked_expressionsGetting startedThe library is designed to be used within anyboltscript (either a.mcfunctionorboltfile) inside aboltenabled project.require:-bolt-wicked_expressionspipeline:-mechaOnce you've requiredboltandwicked_expressions, you are able to import the package'sapimodule directly inside your bolt script.Most of the imports come from thewicked_expressions:apimodule as shown below.fromwicked_expressions:apiimportScoreboardNow you're free to use the API. Use simple and complex expressions, compare expressions and have access to many more features of the library!DocumentationDocs availablehere.FeaturesMost if not all the functionality ofbolt-expressions.Built in score & data comparison using python's comparison operators.Useful functions and methods especially for bolt library developers such as.store()and.get().Anonymous runtime variables.DataStash feature allowing per-entity data.License -MIT
Package: wickedhot
wickedhotWicked easy one-hot-encoder in pure python with no dependenciesPropertiesBuilt for streamingEasy configuration of maximum number of levelsSimple handling of unseen categorical levelsUnobtrusive handling of numerical valuesBuilt in serialization and persistence of encoderHtml form generation capability for use in web appsWell testedMay 1, 2020
First pypi version 0.1.0May 4, 2020
version 0.1.2
Included html form generation and numeric statisticsMay 4, 2020
version 0.1.3
Bug fix, include template directory in setupMay 18, 2020
version 0.1.6
HTML form generationJuly 16, 2020
version 0.2.0
Added functionality to form generation to omit fields and add extra ones.
Useful when you have dropped base features prior to endcoding and want them back
or just want to upload other user supplied info.July 16, 2020
version 0.2.1
Added omit_cols so some columns can have encoding info calculated
(useful for forms for example) but will not produce encoded variables.July 16, 2020
version 0.2.2
Convert categorical with too many levels from drop down to inputJuly 28, 2020
version 0.2.3
Fixed bug in reservoir samplerSept 15, 2020
version 0.2.4
Removed min and max value from stats in forms
made the default value an integer for big numbers
Package: wickedql
# wickedqlWicked cool python tools for GraphQL<a href=’https://codecov.io/github/wickedql/wickedql/’><img src=’https://codecov.io/github/wickedql/wickedql/branch/master/graph/badge.svg’ align=”right” /></a>
<a href=’https://travis-ci.org/wickedql/wickedql’><img src=’https://img.shields.io/travis/wickedql/wickedql.svg’ align=”right” /></a>
<a href=’https://pypi.python.org/pypi/wickedql’><img src=’https://img.shields.io/pypi/v/wickedql.svg’ align=”right” /></a>## Usage## Installation` pip install wickedql `## Setup development environmentIf you want to work on this project, you need setup your development
environment using the following commands.` $ pip install pipenv $ pipenv install--dev$ pipenv shell `## License“wickedql” is licensed under the MIT license. For more information see LICENSE.## Changelog### 0.0.1Initial commit.## ContributorsWickedQL
Package: wicker
WickerWicker is an open source framework for Machine Learning dataset storage and serving developed at Woven Planet L5.UsageRefer to theWicker documentation's Getting Started pagefor more information.DevelopmentTo develop on Wicker to contribute, set up your local environment as follows:Create a new virtual environmentDo apip install -r dev-requirements.txtto install the development dependenciesRunmake testto run all unit testsRunmake lint-fixto fix all lints andmake lintto check for any lints that must be fixed manuallyRunmake type-checkto check for type errorsTo contribute a new plugin to have Wicker be compatible with other technologies (e.g. Kubernetes, Ray, AWS batch etc):Add your plugin into thewicker.pluginsmodule as an appropriately named moduleIf your new plugin requires new external dependencies:Add a new extra-requires entry tosetup.cfgUpdatedev-requirements.txtwith any necessary dependencies to run your module in unit testsWrite a unit test intests/to test your module
Package: wi-cli
Wi will allow storing and using a set of environment variables based on current directoryInstallation$ pip install -r requirements.txt

$ python setup.py installDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run wi cli application

$ wi --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingWi,
and can be built with the includedmakehelper:$ make docker

$ docker run -it wi --help
Package: widdy
widdyWiddy widdy widgets for rapid prototyping ofurwidbased console apps.Installationpip install widdyUsageRead theexamplesor try the demo apps:widdy chuck     # chuck norris joke reader
widdy counter   # fun with text tables
widdy all       # run all available demosDevelopmentFirst clone the repo.git clone https://github.com/ubunatic/widdy
cd widdyThen install the cloned version and install missing tools.make             # clean and run all tests
make install     # install the checked-out dev version
make transpiled  # transpile Py3 to Py2You may need to install some tools and modules, i.e.,flake8,pytest-3,twine,urwid, and maybe others.Pull requestsare welcome!
Package: wide-and-deep
wide_and_deepUse wide and deep model to do multi-classification tasks.This model is developed for the debt-collection robot. The robot calls customers within several topics. However, the human agents make different performances in these topics based on the payback money. If we find in a subtopic, human agents make a better performance, we will analyze the conversations they make with customers and write specific strategies for robots.We collect the conversation between robot and customers and transform them into word2vector using a pre-trained model, use a bidirectional LSTM framework to extract features and use the wide and deep model to do the multi-label classification for higher accuracy (88-93%).Installpip install wide_and_deepHow to useSee demohttps://jiaxiangbu.github.io/user_communication_classificationEX/
Package: wideboost
wideboostImplements wide boosting using popular boosting frameworks as a backend. XGBoost supports the most wideboost features currently. Previous versions supported LightGBM, but this has since been deprecated.Getting startedpip install wideboostSample scriptsThe examples folder contains sample scripts for regression, binary classification, multivariate classification and multioutput binary classification. Currently xgboost is the only supported backend.Starter scriptimportxgboostasxgbfromwideboost.wrappersimportwxgbfrompydatasetimportdataimportnumpyasnp########## Get and format the dataDAT=np.asarray(data('Yogurt'))X=DAT[:,0:9]Y=np.zeros([X.shape[0],1])Y[DAT[:,9]=='dannon']=1Y[DAT[:,9]=='hiland']=2Y[DAT[:,9]=='weight']=3Y=wxgb.onehot(Y)n=X.shape[0]np.random.seed(123)train_idx=np.random.choice(np.arange(n),round(n*0.4),replace=False)test_idx=np.setdiff1d(np.arange(n),train_idx)xtrain,ytrain=X[train_idx,:],Y[train_idx,]xtest,ytest=X[test_idx,:],Y[test_idx,]########param={'eta':0.1,'btype':'I',## wideboost param -- one of 'I', 'In', 'R', 'Rn''extra_dims':1,## wideboost param -- integer >= -output_dim'beta_eta':0.01,## wideboost param -- learning rate for B. Can be unstable -- set to 0 to start.'output_dim':4,## wideboost param -- Y must be in a 2D format (ie not a vector of categories)'objective':'manybinary:logistic',## treat response columns as separate binary problems'eval_metric':['many_logloss']## average binary logloss across columns}num_round=100watchlist=[((xtrain,ytrain),'train'),((xtest,ytest),'test')]wxgb_results=dict()bst=wxgb.fit(xtrain,ytrain,param,num_round,watchlist,evals_result=wxgb_results,verbose_eval=10)Parameter Explanations'btype'indicates how to initialize the beta matrix. Settings are'I','In','R','Rn'.'beta_eta'learning rate for the beta matrix. Sometimes unstable. Start with 0.'output_dim'width of Y. All Y need to be in 2D matrix format and onehotted if doing categorical prediction.'extra_dims'integer indicating how many "wide" dimensions are used. When'extra_dims'is set to0(and'btype'is set to'I'and'beta_eta'is0) then wide boosting is equivalent to standard gradient boosting.New Objectives'multi:squarederror'multidimension output regression.'manybinary:logistic'loss is independent logloss average across response columnsNew Evals'many_logloss'logloss averaged across response columns'many_auc'auc averaged across response columnsReferencehttps://arxiv.org/pdf/2007.09855.pdfAnalyses included in the paper are in the examples/paper_examples/ folder.
Package: widecity-image-downloader
[metadata]
name = widecity_image_downloader
version = 0.0.1
author = Example Author
author_email =widecity.official@gmail.comdescription = a simple package to download images from internet based on the keywords provided.
long_description = file: README.md
long_description_content_type = text/markdown
url =https://github.com/pypa/sampleprojectproject_urls =
Bug Tracker =https://github.com/pypa/sampleproject/issuesclassifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent[options]
package_dir =
= src
packages = find:
python_requires = >=3.7[options.packages.find]
where = src
Package: widefield-plate-solver
# Widefield Plate SolverThis package provides tools for plate solving wide field astronomical images.
Its main difference with using Astrometry.net’ssolve-fielddirectly is that it can also default to Astrometry.net’s API if
requested.## InstallationTo install the package, run:` pip install . `from the root directory of this package.## UsageAfter installation, you can use the commandwidefield-plate-solvefrom the terminal:`widefield-plate-solve<fits_file_path>--use_api`Replace<fits_file_path>with the path to your FITS file.
Use the–use_apiflag to use the Astrometry.net API for plate solving: Your environment variables will need to contain your
API key.
Not using–use_apiwill default to your local installation of Astrometry.net, looking for thesolve-fieldcommand.For more information on usage, run:`widefield-plate-solve--help`## Dependenciesscipyastropysepmatplotlibastroquery
Package: widely
Widely makes deploying static websites easy!Usagemkdir www.hello-world.com
echo 'Hello world!' > www.hello-world.com/index.html
cd www.hello-world.com
widely sites:create www.hello-world.com
widely openInstallationpip install widelyIf yourpipispip-3:pip-2.7 install widelywidelywas developed on Python 2.7.5 on Mac OS X, but it should work
on any system with Python 2.7.Compatibility with Python 3 and 2.6 is planned.Heroku toolbelt-style command line toolBuilt usingdocopt,prettytable,boto,feedparserIssuesPython 3 and 2.6 compatibilityUse S3’s loggingSupport multipart etags (or add in our own metadata)Don’t use MD5Better globsServing compressed files from S3Use Amazon CloudFront and Route 53Tests!MIT Licensehttp://www.github.com/zeckalpha/widelyContactkms@celador.mnhttp://www.celador.mn/widely
Package: wideo
Model W — WideoThis package enables easy video uploading and encoding in Wagtail.Basic usage:Add thewideodependency to yourrequirements.txtorpoetry.toml(and ensurewagtailandceleryare also part of your dependencies)AddwideotoINSTALLED_APPSin your Django settingsOptional: setWIDEO_VIDEO_MODELandWIDEO_RENDER_MODELto your own custom modelsOptional: addwideo.tasks.delete_orphan_uploaded_videosin yourCELERY_BEAT_SCHEDULEin order to clean up unused uploadsThedemofolder contains an example project using Model W.Documentation✨Documentation is there✨
Package: wideprint
WideprintInstallationLicenseInstallationpip install wideprintUsagedef print_columns(data:Iterable, columns:int=3, sep:str=" ", alignment:Literal[">","<","^"]=">")fromwideprintimportprint_columnsprint_columns(data=["aaaa","b","c","d","e","f","g","h","i","j","kkk","l","m","n","o"],columns=3,sep="  ",alignment="<")aaaa  b    c
d     e    f
g     h    i
j     kkk  l
m     n    oLicensewideprintis distributed under the terms of theMITlicense.
Package: wide-product
wide-productimplements a partial, column-wise Khatri-Rao product. It is fast,
and works on sparse matrices.It can be useful for engineering of cross-features for machine learning.DefinitionFor a pair of scalars (~ one by one matrices), the wide product is
multiplication:wide_product([[a]],[[b]])==[[a*b]]Where matrices are constructed byvertical stacking, the product is row-wise:wide_product(vstack((A,B)),vstack((C,D)))==vstack((wide_product(A,C),wide_product(B,D)))Where matrices are constructed byhorizontal stacking, the product contains
all the products of the subcomponents up to permutation of columns:wide_product(hstack((A,B)),hstack((C,D)))==hstack((wide_product(A,C),wide_product(A,D),wide_product(B,C),wide_product(B,D)))Installationpipinstallwide-productDevelopmentTo build the module:pythonsetup.pybuildTo test:PYTHONPATH=$(echobuild/lib*):.py.testTo install:pipinstall.
Package: wideq
WideQA library for interacting with the "LG SmartThinq" system, which can control heat pumps and such. I reverse-engineered the API from their mobile app.To try out the API, there is a simple command-line tool included here, calledexample.py.
To use it, provide it with a country and language code via the-cand-lflags, respectively:$ python3 example.py -c US -l en-USLG accounts seem to be associated with specific countries, so be sure to use the one with which you originally created your account.
For Korean, for example, you'd use-c KR -l ko-KR.On first run, the script will ask you to log in with your LG account.
Logging in with Google does not seem to work, but other methods (plain email & password, Facebook, and Amazon) do.By default, the example just lists the devices associated with your account.
You can also specify one of several other commands:ls: List devices (the default).mon <ID>: Monitor a device continuously, printing out status information until you type control-C. Provide a device ID obtained from listing your devices.ac-mon <ID>: Likemon, but only for AC devices---prints out specific climate-related information in a more readable form.set-temp <ID> <TEMP>: Set the target temperature for an AC or refrigerator device.set-temp-freezer <ID> <TEMP>: Set the target freezer temperature for a refrigerator.turn <ID> <ONOFF>: Turn an AC device on or off. Use "on" or "off" as the second argument.ac-config <ID>: Print out some configuration information about an AC device.CreditsThis is byAdrian Sampson.
The license isMIT.
I also made aHome Assistant componentthat uses wideq.