Saravanan666/pypi-org huggingface dataset:
Package: wom.py
wom.pyAn asynchronous wrapper for theWise Old Man API.The library aims to make it easy to interact with the Wise Old Man API by
providing service methods matching all available endpoints and model classes
for data consistency.DocumentationStableDevelopmentGetting startedIf you're new to using wom.py, check out ourgetting started guide.ProblemsIf you're experiencing a problem with the library, please open an issuehere, after first confirming
a similar issue was not already created.What is Wise Old ManWise Old Man is an open source Oldschool Runescape player progress tracker.If you're interested in learning more about the Wise Old Man project, consider checking out any of these links:WebsiteAPI documentationGithub repositoryDiscord communitySupport the developers on PatreonSome of the popular features include:Experience trackingBoss killcountsPlayer achievementsGroup competitionsGlobal leaderboardsA discord bot for interacting with the APIContributingwom.py is open to contributions. Check out thecontributing guideto learn how.Licensewom.py is licensed under theMIT License.
Package: wonambi
Package for the analysis of EEG, ECoG and other electrophysiology modalities.
Allows for visualization of the data and sleep stage scoring in a GUI.
Provides automatic detectors for spindles and slow waves.FeaturesCan read files of format:Axon (.abf, ABF2 only)BCI2000 (.dat)Blackrock (.nev, .ns2, .ns3, .ns5)Brain Vision (.vhdr, .vmrk, .eeg / .dat)EEGLAB (.set, .set / .fdt)European Data Format (.edf)EGI MFF (.mff)Fieldtrip (.mat)mne FIFF (.fiff)SystemPlus Micromed (.trc)Moberg (“EEG,Composite,SampleSeries,Composite,MRIAmp,data”)openephys (.continuous, .openephys)BIDS-formatted data fileInterface for Sleep ScoringComputes frequency analysis (spectrogram), time-frequency analysis (short-time spectrogram, Morlet wavelet)Detection of spindles and slow wavesPure PythonInstallationInstall wonambi by running:pip3 install wonambiSeeInstallation for detailsIf you want to scroll recordings and do some sleep scoring (requires PyQt5)wonambiRun it!From the command line, simply type:wonambiTo open a dataset directly, add the full path to the file you want to open:wonambi /home/me/sleep_recordings.edfDocumentationSeeDocumentationChange LogSeeChange LogRequirementsPython 3.6 or laternumpyscipyOptional RequirementsPyQt5 (optional for sleep scoring GUI)python-vlc (optional, to watch embedded movies)vispy (optional to plot 3D brain surfaces and electrodes)h5py (optional to read FieldTrip Matlab files)mne (optional, to export to mne FIFF files)nibabel (optional to read freesurfer)tensorpac (optional to run phase-amplitude analysis, tensorpac version should be 0.5.6)fooof 1.0 (optional to run parametrization of power spectra)StatusLicenseThe project is licensed under the 3-clause BSD license.
Package: wonda
Wonda ☁️Wonda is a Telegram bot framework. It supports latest versions and features of the API. Incredibly fast and extraordinarily customizable, it gives you power to build the bot you always wanted.InstallpipinstallwondaA stable version of Wonda can be installed using this command. Add--preto the command to install a pre-release version.FeaturesEver wanted to build a bot? You can do that in only 6 lines of code.fromwondaimportBot,Messagebot=Bot("your-token")@bot.on.message()asyncdefhandler(m:Message)->None:awaitm.answer("Hello world!")bot.run_forever()You can alreadyformat text,upload files, and make use ofan advanced state systemto craft complex interactions. And more features are expected to come! Check out theexamples.CustomizationSpeed up event looppipinstalluvloopWonda supports uvloop, an event loop implementation which makes I/O2-4x quicker.Replace default JSON modulepipinstallorjsonSwap out the module that is used under the hood to manipulate JSON and increase speed up to5 times.ContrubutingThe framework is not yet ready for production. If you like what you see, help us develop this amazing project!Create an issueormake a pull request.Copyrighttimoniq (2019-2021)geo-madness (2022-2023)
Package: wonderbits
豌豆拼重写了豌豆拼python硬件交互逻辑fromwonderbitsimportDisplay,wb_tool,Control,Ledimportrandomimporttime# wb_tool.show_console()d=Display()c=Control()l=Led()foriinrange(20):d.print(1,1,i)v=c.get_sw4()l.set_rgb(random.randint(0,255),random.randint(0,255),random.randint(0,255))print(v)time.sleep(1)
Package: wonderboy
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)If you're interested in financially supporting Kenneth Reitz open source, considervisiting this link. Your support helps tremendously with sustainability of motivation, as Open Source is no longer part of my day job.Check out the example!To DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.✨🍰✨
Package: wonderful_bing
__        __   ___  __   ___               __          __
|  | /  \ |\ | |  \ |__  |__) |__  |  | |       |__) | |\ | / _`
|/\| \__/ | \| |__/ |___ |  \ |    \__/ |___    |__) | | \| \__>IntroTired of the wallpaper? Let’s make the change. This program is to
download Bing’s picture and set as wallpaper with a notify to let you
know the story behind the picture.RequirementsLinux platform(Currently support gnome, xfce(thanks to [@jokeryu][]),
mate(thanks to [@renzhn][]))Python 2.7 && python 3.xLibnotify-bin(for Arch: libnotify)Install$ (sudo) pip install wonderful_bing
$ sudo apt-get install libnotify-binUsageUsebing--helpto get the detailed information.ManuallyYou need to set a directory(default/tmp)to save the download
pictures, end with ‘/’, specify your desktop_environment(support gnome,
cinnamon, xfce4).$ bing set -d /path/to/save/pictures/ desktop_environmentAutomatically(recommand)Add it tostartup application(in my Linux Mint16) if you power
on your pc and power off your pc regularly, then every time you boot
up your pc, this script will automatically run for you.Or usecron. Let me give you an example:0 8 * * * env DISPLAY=:0 /usr/local/bin/bing set -d /home/lord63/pictures/bing/ cinnamonwe need ``env DISPLAY=:0``, otherwise the notify can’t display at all,
and remember the ``/`` at the end.Or useanacronif you ofen hang up your pc instead of powering
off it. but the originalanacronwill run the script in root,
thus it may fail in setting the picture to wallpaper. Followthisto let you runanacronas normal user. Let me give you an example, add the following line in$HOME/.anacron/anacrontab:1 1 bing env DISPLAY=:0 /usr/local/bin/bing set -d /home/lord63/pictures/bing/ cinnamonIf you find a better way, please let me know :)Snapshotsthe first time you run it:$ bing set -d /home/lord63/pictures/bing/ cinnamon
Successfully download the picture to --> /home/lord63/pictures/bing/CascadePools.jpg
Successfully set the picture as the wallpaper. :)get today’s picture story.$ bing story
Aurora borealis over the coast of Iceland (© Babak Tafreshi/Nimia)if the picture has been downloaded before:$ bing set -d /home/lord63/pictures/bing/ cinnamon
You have downloaded the picture before.
Have a look at it --> /home/lord63/pictures/bing/CascadePools.jpgif your pc doesn’t connect to the network, it will try again after 5
mins.$ bing set -d /home/lord63/pictures/bing/ cinnamon
ConnectionError,check your network please.
Will try again after 5 minutes.and the notify should looks like this:notify-imgLicenseMIT License
Package: wonderguy
豌豆拼重写了豌豆拼python硬件交互逻辑fromwonderguyimportDisplay,wb_tool,Control,Ledimportrandom# wb_tool.show_console()d=Display()c=Control()l=Led()foriinrange(20):d.print(1,1,i)v=c.get_sw4()l.set_rgb(random.randint(0,255),random.randint(0,255),random.randint(0,255))print(v)
Package: wonderparse
OverviewThe wonderparse project allows for easy cooperation between a main-function/an object that hold the central functions on the one side and argparse on the other.InstallationTo install wonderparse, you can usepip. Open your terminal and run:pipinstallwonderparseUsageThe code from the expit project.importmathas_mathimportwonderparseas_wpdeffunction(x:float):try:p=_math.exp(-x)exceptOverflowError:p=float('+inf')return1/(1+p)defmain(args=None):_wp.easymode.simple_run(args=args,program_object=function,prog='expit',)Working example:main([".4"])### 0.598687660112452Example with missing parameter.main([])### usage: expit [-h] x### expit: error: the following arguments are required: x### An exception has occurred, use %tb to see the full traceback.Example with faulty typing.main(["spam"])### usage: expit [-h] x### expit: error: argument x: invalid float value: 'spam'### An exception has occurred, use %tb to see the full traceback.The wonderparse project allows for parsing made easy.LicenseThis project is licensed under the MIT License.LinksDownloadSourceCreditsAuthor: JohannesEmail:johannes-programming@posteo.orgThank you for using wonderparse!
Package: woning-bricks
This is a tool for having an easier and more consistent development workflow.Installationpip install woning-bricksConfigurationEach project must have abricks.yml. If you plan to use docker-compose,
you must also have adocker-compose.ymlwhere the service has the same
name as the project.Examplebricks.ymlstructuremetadata:
  name: test
  version: 0.0.1
  description: Testing this
  author: me
  tags:
  - hello
  - world

plugins:
  - name: python_library

commands:
  - name: say_hello
    driver: local
    commands:
    - echo "hello there $message"CommandsTo list project details:bricks helpTo run certain commandsbricks run command_name [-p param1=value1][-p param2=value2][...]Eg.bricks run test
bricks run test -p use_ansible=1
bricks run build -p root_url=https://example.com
Package: woning-wattle
Library for converting yaml structures to Python objects, based on a predefined object hierarchy schema.Given a schema of class hierarchyfrom wattle import load_schema
from wattle.nodes import Nested, Value


class MessagePrinter:
    indent = Value(int)
    capitalize = Value(bool)

    def print(self, message):
        if self.indent:
            message = (" " * self.indent) + message
        if self.capitalize:
            message = message.upper()
        print(message)


class HelloWorld:
    message = Value(str)
    how_many_times = Value(int, default=25)
    printer = Nested(MessagePrinter)

    def print(self):
        for _ in range(self.how_many_times):
            self.printer.print(self.message)


if __name__ == '__main__':
    schema = load_schema(HelloWorld)
    root = schema.read('examples/hello_world/input.yml')
    root.print()and the input yaml filemessage: Hello world
how_many_times: 5
printer:
  indent: 4
  capitalize: yesWill result in an already populated objectassert root.message == 'Hello world'
assert isinstance(root.printer, MessagePrinter)
root.print()
Package: wonnx
WONNX Python moduleThis crate allows using WONNX from Python.BuildingTo build the Python module for development:cdwonnx-py
python3-mvenv.venvsource.venv/bin/activate
pipinstallmaturin
maturindevelopYou can also usemake pythonfrom the project root. If you want to specify a specific version of python, use:make python PYTHON=python3.10(e.g. if you usedbrew install python@3.10to install Python 3.10 on macOS).TestingFor testing, additional dependencies are required. First, ensure you have the protobuf compiler (protoc) installed and
in your PATH (on macOS, you can usebrew install protobufand possiblybrew link protobufto install it). Nextl, install
Python dependencies:pipinstall-rrequirements.txtTo test a specific operator, you can use the following command:OP_TESTED=reducepytesttests/test_specific_op.pyTo test the current set of fully tested op:pythontests/test_onnx_backend.py
Package: woo
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: woob
Woob (Web Outside of Browsers) is a library which provides a Python standardized API and data models to
access websites.OverviewThere are three main concepts:Capabilities: This is a standardized interface
to access a specific kind of website. It provides an unified API and standard
datamodels;Modules: A module is dedicated to a specific
website. It can implements several capabilities (for examplepaypalmodule may
implementCapBankto get bank
informations,CapTransferto
initiate a transfer,CapProfileto get
information about the customer, andCapDocumentto get documents);Backends: You can load a module several times,
with different configurations. For example, if you have two PayPal accounts,
you can create two backends of the same module with different credentials.The mainWoobclass let configure new backends and do aggregated calls to
every backends loaded with a specific capability.For example, once backends are loaded, you can calliter_accounts()and
you’ll get accounts in the sameAccountdata model for all backends
implementingCapBank:>>>fromwoob.coreimportWoob>>>fromwoob.capabilities.bankimportCapBank>>>w=Woob()>>>w.load_backends(CapBank){'societegenerale':<Backend'societegenerale'>,'creditmutuel':<Backend'creditmutuel'>}>>>accounts=list(w.iter_accounts())>>>print(accounts)[<Accountid='7418529638527412'label=u'Compte de ch\xe8ques'>,<Accountid='9876543216549871'label=u'Livret A'>,<Accountid='123456789123456789123EUR'label=u'C/C Eurocompte Confort M Roger Philibert'>]>>>accounts[0].balanceDecimal('87.32')ApplicationsIf you are looking for applications using the woob library, visitwoob.tech.InstallationRead thisdocumentation.DocumentationMore information about how to use woob atwoob.dev.ContributingIf you want to contribute to woob (patch of the core, creating new modules,
etc.),read this.Chat with us#woob @ liberachat#woob @ matrix.org
Package: woocommerce-subscriptions-check
WooCommerce Subscription CheckerCurrent version1.0Project sitehttps://github.com/cr0hn/woocommerce-subscription-checkIssueshttps://github.com/cr0hn/woocommerce-subscription-check/issues/Python versions3.6 or aboveMotivationsWoocommerce doesn’t allow to check the user subscriptions (or any other data) from the Wordpress API without being an admin user.This means that if a regular user want to check their subscriptions, products or something else, it need to be an admin role. And, in non-secure scenarios, this is not good idea, i.e: in the browser through JavascriptWhat that project does?This project exposes non-privileged API and allow to regular users to check their subscription, without the need to have an admin role.RequirementsYou must install in your Wordpress the plugins:JWT Authentication for WP-APIWP REST APIDisable REST API and Require JWT (Recommendable)IMPORTANTBe careful with JWT plugin. Ensure you follow these steps, in the same order:1 - Add to wp-config.phpAdd these lines in your wp-config.php:define(‘JWT_AUTH_SECRET_KEY’, ‘your-top-secrect-key’);
define(‘JWT_AUTH_CORS_ENABLE’, true);IT’S MORE IMPORTANTto add these lines just before the definition of AUTH_KEY, SECURE_AUTH_KEY… (https://github.com/Tmeister/wp-api-jwt-auth/issues/59)2 - Activate the pluginAfter you add the data from step 1, then activate the plugin.Environment varsLISTEN_ADDR (default: 127.0.0.1)LISTEN_PORT (default: 9000)API_PREFIX (default: v1)LOG_LEVEL (default: 1)SENTRY_DSN (default: None)REDIS_HOST (default: 127.0.0.1)REDIS_PORT (default: 6379)REDIS_DB (default: 1)SCHEME (default: https)DOMAIN:MandatoryADMIN_ROLE_USER:MandatoryADMIN_ROLE_PASSWORD:MandatoryUsing Docker>dockerrun-p9000:9000--rmcr0hn/woocommerce-subscription-checkUsing Pypi>python3.6-mpipinstallwoocommerce_subscriptions_checkInstalling with Sentry support:>python3.6-mpipinstallwoocommerce_subscriptions_check[sentry]End-points/api/v1/loginGeneralMethod: POSTInput data as JSONInput value: user / passwordExample request>curl-v-XPOSThttp://127.0.0.1:9000/api/v1/login-d'{"user": "MyUser", "password": "MyPassword"}'Example responsesAuthentication doneHTTP STATUS: 200Response:{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI19s82.eyJpc3MiOiJodHRwczpcL1wvd2hvaXNsZWF2aW5nLmNvbSIsImlhdCI6MTUyMzQ0ODQxMSwibmJmIjoxNTIzNDQ4NDExLCJleHAiOjE1MjQwNTMyMTEsImRhdGEiOnsidXNlciI6eyJpZCI6IjIifX19.bu8ChmreEqDt5wwACSB5L_-8V9hHPRzJI-zGHB1Unv4"}Authentication failsHTTP STATUS: 403Response:{"message":"Invalid user or password"}Invalid DataHTTP STATUS: 400Response: “Invalid JSON”/api/v1/subscriptionsGeneralMethod: GETInput value: user / passwordExample request>curl-v-XPOSThttp://127.0.0.1:9000/api/v1/subscriptions-H'Authorization: Bearer TOKEN_FROM_LOGIN'Example responsesuser has subscriptionsHTTP STATUS: 200Response:{"subscriptionName":"micro","subscriptionStatus":"active","expireDate":"2018-05-10T16:17:31"}user has NOT subscriptionsHTTP STATUS: 200Response:{"subscriptionName":null,"subscriptionStatus":null,"expireDate":null}Authentication failsHTTP STATUS: 403Response:{"message":"Invalid token. You must authenticate first"}Invalid DataHTTP STATUS: 400Response: “Invalid JSON”
Package: wood
Wood is a toolbox for representing directory trees, calculating comparisons
between them, and effecting those changes in S3, CloudFront and Cloudflare. It
started as a set of deploy scripts for my personal website, but grew into
something that I was too chuffed with to keep hidden away in the bowls of
another website repository. It’s not as refined as, say, requests, but should
be useful to anyone looking to efficiently deploy a website to AWS, and/or
using Cloudflare as a CDN.Notably, unlike the AWS CLI tools or boto3, wood does not rely on file
timestamps, instead using MD5 checksums to make the minimum number of changes
possible in S3. It also has an algorithm for aggregating invalidation paths to
make the CloudFront free tier go as far as possible. Syncers and invalidators
are implemented in a generic way, allowing easy extension to additional
services as needed.FeaturesTree representationTree comparisonAction that comparison in S3Invalidate paths as necessary in CloudFront and CloudflareDemoimportwood# low-level comparison of two local directoriescomparison=wood.compare('~/dir','~/.snapshot/hourly.1/dir')comparison.new()# files added since the snapshotcomparison.modified()# files modified since the snapshotcomparison.deleted()# files deleted since the snapshotimportpathlibimportboto3local_base=pathlib.Path('/path/to/web/root')bucket=boto3.resource('s3').Bucket('example.com')# create representations of the local and remote treesto_deploy=wood.root(local_base)deployed=wood.s3.objects_to_root(bucket.objects.all())# compare the two as if they were local directoriescomparison=wood.compare(to_deploy,deployed)# write all changes (additions, modifications, deletions) to the S3 bucketsyncer=wood.s3.Syncer(local_base,bucket)syncer.sync(comparison)# invalidate the minimum amount in CloudFront to ensure the changes are# visible, using prefix grouping where possiblecloudfront=boto3.client('cloudfront')invalidator=wood.cloudfront.Invalidator(cloudfront,'{distribution}','{reference}')invalidator.invalidate(comparison)# do the same for Cloudflare in the case of a second CDNinvalidator=wood.cloudflare.Invalidator(sess,email,key,zone,'https://example.com/')invalidator.invalidate(comparison)Why “wood”?Because it started as a tree comparison tool, and grew out from there. It’s
also a little rough around the edges.
Package: woodblock
Woodblock – Easy File Carving Test Data GenerationThe goal of Woodblock is to make it as easy as possible to generate file carving test data
sets such as the ones created by theDFRWSin their2006and2007challenges or by the ones created byNIST.Basic FeaturesSimple configuration files based image creation for most use cases.Easy to use Python API for more complex requirements.Ground truth file in JSON format.DocumentationOur documentation is hosted onRead the Docs.ConceptsWoodblock borrows most concepts from the DFRWS2006and2007challenges. As stated there,
ascenarioreflects a “specific situation that might occur in a real file system”.
A scenario consists offileswhich are split intofragments. Scenarios on the
other hand can be put into an image which can then used as input for the carving tool
you would like to test.The following example should clarify these concepts. Consider for example the twofilesAandB.These files can be split intofragments. In the example, we split fileAinto two
fragments,A.1andA.2. FileBhas not been fragmented.If we arrange the fragments of our files, we have ascenario:A scenario can be added to animage, which in turn can be written to disk. Or you can
add another scenario to the image as shown below.Using Woodblock, you could create the images shown above using a simple configuration file:[general]block size=512seed=123corpus=testfiles[scenario 1]frags file1=2frags file2=1layout=1.1, 2.1, 1.2[scenario 2]frags file1=3layout=1.2, 1.1, Z, 1.3All files possibly added to a scenario have to be stored in a directory. This
directory serves as the test filecorpusand has to be distributed along
with Woodstock configuration files or scripts using the Woodstock API.
Package: woodchipper
WoodchipperA library to support contextual structured logging with related observability metrics.Woodchipper was written during an internal hackathon attackle.io.Installingpip install woodchipperCreating a developer environmentAfter cloning the repository, setting up a virtual environment, and activating it...pip install -e .[dev]We recommend you installpre-commitand install the pre-commit hooks using:pre-commit installReleasing to PyPIReleases are handled through GitHub Actions by tagging a revision in GitHub. To release version 0.13.37:# Obviously adjust the version number to the version you're releasing, but it must be of the form vX.Y or vX.Y.Z
git tag -a v0.13.37 -m "Releasing v0.13.37"
git push origin --tags