Saravanan666/pypi-org huggingface dataset:
Package: wedgedriver
wedgedriverwedgedriverdrives wedges in insecure cryptography schemes.All the tools are licensed under the MIT License.Installationpip install wedgedriverwedgedriversupports both Python 2 and 3.UsageTODOIn the meantime, check the tests to see some examples.As of now, the tools offer attacks on most polyalphabetic substitution ciphers, some classic attacks on AES, some simple scripts to handle RSA.
Package: wedge-lib
Wedge LibraryDémarrage rapide$pipinstallwedge-libMode maintenanceMiddlewareMIDDLEWARE=["w.drf.middlewares.maintenance_mode_middleware.MaintenanceModeMiddleware",],CommandAjouter la commande maintenance_mode :fromw.django.commands.abstract_maintenance_mode_commandimport(AbstractMaintenanceModeCommand,)classCommand(AbstractMaintenanceModeCommand):passUtilisation :$pythonmanage.pymaintenance_mode<on/off>Configuration pour certains servicesMailServiceTBDGoogleMapServiceTBDYousignServiceTBDDevelopmentInstallation$pipenvsync--devUpdate dependencies$pipenvupdate--devRun test$pytestEn cas d'ajout d'une librairieAfin qu'elle soit également installée sur cs_back, il faut ajouter une ligne dans setup.cfg, sous la partie "install_requires ="Des variables d'environnement doivent être configurées sur Pycharm:Cliquez sur Edit configurations en haut à droite de votre éditeurEdit configurations templates...Python tests - pytestCliquez sur environnement variables et ajouter les api key correspondant à :GOOGLE_MAP_SECRETGOOGLE_MAP_API_KEYLes valeurs de ces variables peuvent être trouvées sur les secrets du repo ou à EloïseBefore commitPour éviter de faire échouer le CI, lancer la commande:$./before_commit.zshPublier manuellement sur PyPIAprès avoir committer et pousser:tagguer une version dans GitHub.mettre à jour la version dans le fichiersetup.cfgavec le tag créé.créer le package$rm-rfbuilddistwedge_lib.egg-info
$WEDGELIB_VERSION=<version>pythonsetup.pysdistbdist_wheelmettre à jour sur TestPypi$twineupload--repositorytestpypidist/*Si tout est ok, mettre à jour sur Pypi$twineuploaddist/*Utiliser W en mode dev depuis un autre projet (ex: csback)Supprimer w du projet, ensuite l'installer à partir du chemin local du projet w:pipenvuninstallwedge-lib&&pipenvinstall<Absolutepathduprojetwlocal>Après une nouvelle release de w, utiliser la version officielle :pipenvuninstallwedge-lib&&pipenvinstallwedge-lib
Package: weditor
# WEditor
[![image](https://img.shields.io/pypi/v/weditor.svg?style=flat-square)](https://pypi.python.org/pypi/weditor)
[![image](https://img.shields.io/github/stars/alibaba/web-editor.svg?style=social&label=Star&style=flat-square)](https://github.com/alibaba/web-editor)
[![image](https://travis-ci.org/alibaba/web-editor.svg?branch=master)](https://travis-ci.org/alibaba/web-editor)[中文文档](README_ZH.md)This project is subproject for smart phone test framework [openatx](https://github.com/openatx)
for easily use web browser to edit UI scripts.Screenshot![screenshot](./screenshot.jpg)## Installation
DependenciesPython3.6+
- [uiautomator2](https://github.com/openatx/uiautomator2)
- [facebook-wda](https://github.com/openatx/facebook-wda)> Only tested inGoogle Chrome, _IE_ seems not working well.` pip3 install-Uweditor `For developers`bash git clonehttps://github.com/openatx/weditorpip3 install-eweditor `## Usage
Create Shortcut in Desktop (Only windows)` weditor--shortcut`By click shortcut or run in command line` weditor `This command will start a local server with port 17310,
and then open a browser tab for you to editor you code.Port 17310 is to memorize the created day – 2017/03/10To see more usage runweditor -h## Hotkeys(Both Mac and Win)
- Right click screen:Dump Hierarchy### Hotkeys(only Mac)
- Command+Enter: Run the whole code
- Command+Shift+Enter: Run selected code or current line if not selected### Hotkeys(only Win)
- Ctrl+Enter: Run the whole code
- Ctrl+Shift+Enter: Run selected code or current line if not selected## For Developers
See [DEVELOP.md](DEVELOP.md)## LICENSE
[MIT](LICENSE)
Package: wedo
About the WeDoTheLego WeDois a tethered-over-USB sensing and robotics toolkit produced by Lego for the educational market.It’s gotten lots of press, including a favorable review on the One Laptop Per Child blog, ondeployments and training in Peru.It’s supported by Scratch(on Windows and OSX) and by Lego’s proprietary software(on Windows.)It prominently features theLB1836motor driver and theLM358op-amp, as well as an epoxy blob with USB support.The digital communication protocol used by the Power Functions system is documented onPhilo’s Awesome Page.RequirementsPython 2.7+pyusb (setup.py should take care of installing the dependency)InstallationFrom pypi:pip install wedoFrom the source tree:./setup.py installHow to Use it>>> from wedo import WeDo
>>> wd = WeDo()
# Activating the first motor full forward:
>>> wd.motor_a = 100
# Activating the second motor half speed/force backward:
>>> wd.motor_b = -50
# Current value of the tilt sensor:
>>> wd.tilt
# Current distance value in meters of the distance sensor:
>>> wd.distanceContributorsIan DaniherTony ForsterWalter BenderGuillaume BinetJoshua CoxwellAlan AguiarCHANGELOG2016-06-20 v1.1.02013-04-30 v1.0.0massive refactoring and packaging for the first versionbasic documentation
Package: wedoc
企业微信文档接口可以完成简单的在线表格增删改查文档PYPI案例fromwedocimportWedocClientif__name__=="__main__":corpid="xxxxxxxxxxxxx"corpsecret="xxxxxxxxxxxxx"docid="xxxxxxxxxxxxxxxxxxxxxx"client=WedocClient(corpid,corpsecret)res=client.access_tokenprint(res)doc_type=4doc_name="物料"res=client.doc.create_doc(doc_name,doc_type)print(res)res=client.workbook.get_sheet_properties(docid)print(res)文档接口创建文档重命名文档删除文档获取文档基础信息表格接口获取表格行列信息获取表格数据编辑表格内容创建 sheet 页删除 sheet 页读取总行数读取总列数读取单元格内容, 行, 列, 区域设置单元格内容, 行, 列, 区域联系我
Package: wedos-wapi-client
wedos-wapi-clientWrapper aroundWEDOS WAPI(Note: WAPI must be enabled for your account and your IP must be authorized to access it.)Example usage for DNS:fromwedos_wapi_clientimportWapiClientold_ip="1.2.3.4"new_ip="10.20.30.40"wapi=WapiClient(user="your-email@domain.tld",password="secret-password")fordomaininwapi.domains_list().data["domain"].values():forrowinwapi.dns_rows_list(domain["name"]).data["row"]:ifrow["rdtype"]=="A"androw["rdata"]==old_ip:wapi.dns_row_update(domain=domain["name"],row_id=row["ID"],rdata=new_ip)wapi.dns_domain_commit(name=domain["name"])
Package: wee
You could call it Webob augmenteditty.  It borrows it’s form but
allow for the use of a passed in Request or Response object. By
default, it uses the Request and Response from WebOb, as well as WebOb’s.Why?We were working withittyand hit our head a few times.  We really
liked the way it worked though and thought we might fit it with our
favorite request and response objects.  106 lines later, wee was born
as the dispatcher for a wsgi app.Basic UsageHere is a super simple pony app to show the basics of wee.  Pretty
much the same as itty except we use full regex strings:import wee
from wsgiref.simple_server import make_server

@wee.get(r'^/$')
def ponytime(request):
    return "It's Pony time!"


@wee.post(r'^/$'):
def make_pony(request):
    ... make a pony ...


@wee.put('^/(?P<pony_name>\w+)$'):
def add_unicorn_horn(request, pony_name=None):
    ... change a pony ...


@wee.delete('^/(?P<pony_name>\w+)$'):
def kill_a_pony(request, pony_name):
    ... delete a pony ...

srv = make_server(host, port, wee.make_app())
srv.serve_forever()Using a prefixSometimes you want to hang a wee app on an existing app tree:import wee

@wee.get('^/$')
def logical_root(request):
    return "I'm an index"

registry = wee.PrefixRegistry(prefix='/my/crazy/existing/dispatch/tree')

wee.make_app(registry=prefix)Experimental REST Container supportThere is some rough support for creating simple CRUD containers like
so:import wee

@wee.rest("^/candymountain")
class UnicornStable(wee.Resource):
    subtype = 'unicorn_id'
    def get(self):
        ... your list of unicorns ...

    def post(self):
        name = self.request.POST['unicorn-name']
        ... make a unicorn ...

    def getitem(self, unicorn_id):
        ... serve a unicorn ...

    def put(self, unicorn_id):
        ... change a unicorn ...

    def delete(self, unicorn_id):
        ... kill a unicorn ...The rest verb generates a series of regexes to dispatch upon for the
appropriate verbs with a special care to separate ‘get’ (/) and
‘getitem’ (/some_id).Other Differences from ittyThe only other main difference is that dispatch is scoped by the
module that defines the handler.  This means multiple wee apps can run
in the same process without clobbering each other.We don’t give you are run command either, nor any adapters for popular
frameworks. Maybe later.Coveragecoverage.py says 100% currently, but we could have more unittests
vs. stack tests.Wait I’m Confused …“When do I use itty and when do I use wee?”You probably shouldn’t use either.  This is an experiment, so seems to
be itty.If you are brave though, useweewhen you want to do some itty or
sinatra like, but are using Webob. Useittywhen you want some
totally contained in itself w/ no dependencies that requires little
configuration that you want to run as quickly as possible.CreditsDaniel Lindsley– Author ofittyMatt George and Whit Morriss –  Ax work on Wee
Package: weebapi
Pluggable Weeb.sh API WrapperDocumentationAll available documentation can be found here:weebapi.readthedocs.ioHow to install:1. With pippip install-Uweebapi2. From GitHubpip install-Ugit+https://github.com/AndyTempel/weebapi#egg=weebapiUsage:With bot integration:fromdiscord.ext.commandsimportBotfromweebapiimportClientbot=Bot(command_prefix="+")Client.pluggable(bot=bot,api_key="VeryNiceKey123")@bot.command()asyncdefowo(ctx):image=awaitbot.weebsh.get_random(image_type="owo")awaitctx.send(str(image))>>>https://cdn.weeb.sh/images/SklMOkytDb.jpegor without bot integration:fromdiscord.ext.commandsimportBotfromweebapiimportClientbot=Bot(command_prefix="+")weeb=Client(api_key="VeryNiceKey123")@bot.command()asyncdefowo(ctx):image=awaitweeb.get_random(image_type="owo")awaitctx.send(str(image))>>>https://cdn.weeb.sh/images/SklMOkytDb.jpegLicense
Package: weebtools
weebtoolsA tool mostly for downloading anime related stuff.Installationpip install weebtoolsUsageweebtools uses subcommands to split functionality. Each subcommand has their own arguments and options.CLITop level options:--help- Prints help, also shows subcommands--version- Prints package versionExamples:python -m weebtools --help
python -m weebtools --versionutilsUsed mostly for miscellaneous helper functionsGeneral usagepython -m weebtools utils [some_option(s)]Options:--help- Print help--getChromeVersion- Prints current google chrome version--getChromeDriverVersion- Prints current chrome driver version, looking in$HOME/bin--downloadChromeDriver- Downloads latest chrome driver for your google chrome versionExamplespython -m weebtools utils --help
python -m weebtools utils --getChromeVersion
python -m weebtools utils --getChromeDriverVersion
python -m weebtools utils --downloadChromeDriverimgSites and url format supported:yande.rehttps://yande.re/post/show/[PIC_ID]https://yande.re/post?tags=[ARTIST_TAG_NAME]pixivhttps://www.pixiv.net/en/artworks/[PIC_ID]https://www.pixiv.net/en/users/[ARTIST_ID]- can take different routes, but they all will get from/artworksMore to come!General usage:python -m weebtools img <piclink> [some_option(s)]Options:No options given:If link type is single, downloads the imageIf link type is artist, downloads all images from that artist-h / --helpPrints helpShows what links are supported as well as link type (single vs artist)-u / --updateIf artist folder exist, gets new updates / images until it finds it finds an existing image. (Lazy update)This is particularly useful if the url supplied has lots of pages and you don't want to wait for all page iterations-ua / --update_allIf artist folder exist, gets any missing images.Examples:python -m weebtools img -h                                                 # Prints help
python -m weebtools img https://yande.re/post/show/[PIC_ID]                # Downloads single image
python -m weebtools img https://yande.re/post?tags=[ARTIST_TAG_NAME]       # Downloads all images from this artist
python -m weebtools img https://yande.re/post?tags=[ARTIST_TAG_NAME] -u    # Lazy update on this artist
python -m weebtools img https://yande.re/post?tags=[ARTIST_TAG_NAME] -ua   # Updates with any missing imagesImages are downloaded to$HOME/Downloads/imagesFile system structure:$HOME/Downloads/images
|
└───artist1
|    |
|    └───png
|    |   |
|    │   └── *.png
|    |
|    └───jpg
|    |   |
|    │   └── *.jpg
|    │
|    └───source
|        |
|        └── info.json
|
└───artist2
|    |
|    └───png
|    |   |
|    │   └── *.png
|    |
|    └───jpg
|    |   |
|    │   └── *.jpg
|    │   
|    └───source
|        |
|        └── info.json
|...As a moduleFull of dinosaurs with laser guns>>>fromweebtools.utilsimport*>>>getChromeVersion()'103.0.5060.114'>>>getChromeDriverVersion()'103.0.5060.53'
Package: weeder
You may have backups.Every day, your precious stuff is saved in a safe place.But you may have too much of that…This script will select for you what files to drop, based on a retention policy
such that as files get older you can keep less of them. The default policy
will keep all the files in the last two weeks, a file every week for the last
three months, a file every month for the last year, a file every year forever.The script takes in input the existing files on command line and by default
will print on stdout the files to delete. You can use a chain of commands such
as:ls | xargs weeder | xargs rmto run in a cron job every day to keep your backup directories light.Our glorious helpRunningweeder-hyou might be told:usage: weeder [-h] [-p AGE:DIST [AGE:DIST ...]] [-f REGEX] [-r YYYY-MM-DD]
              [--print-keepers | --print-goners] [-q | -v]
              [FILE [FILE ...]]

positional arguments:
  FILE                  the files to weed

optional arguments:
  -h, --help            show this help message and exit
  -p AGE:DIST [AGE:DIST ...], --policy AGE:DIST [AGE:DIST ...]
                        state that, of every file older than AGE days, we want
                        to keep at least one every DIST days
                        [default: 14:7 84:28 364:364]
  -f REGEX, --format REGEX
                        the pattern to extract a date from a file name
                        [default: (\d{4})-(\d{2})-(\d{2})]
  -r YYYY-MM-DD, --refdate YYYY-MM-DD
                        reference date to establish retention [default: today]
  --print-keepers       print the files to keep
  --print-goners        print the files to delete [default]
  -q, --quiet           talk less
  -v, --verbose         talk morebut who knows, really.Running testsYou can run:python3 setup.py test
Package: week
#### Xiang Wang @ 2017-05-24 13:40:52# Documentation## Installation` pip install week `## Usage` >>> import datetime >>> from week import Week >>> Week.thisweek() ==Week.create_from_date(datetime.date.today())True >>> week = Week.thisweek() >>> week.startdate datetime.date(2017, 5, 22) >>> next_week = week.get_next_week() >>> next_week.enddate datetime.date(2017, 6, 4) >>> another_week = week + 1 >>> another_week == next_week True >>>print(Week.create_from_date(datetime.date(2017,1,1)))2016year 52week >>>print(Week.create_from_date(datetime.date(2017,1,10)))2017year 2week `
Package: week1-test
MicrophoneProvides a simple interface for configuring and utilizing a microphone in Python.This package has been tested using Python 3.7, using conda 4.7.5, on both Mac and Windows 10.Installing pyaudio (required dependency)condainstallpyaudioInstalling this packageOnce you have installed the dependencies, clone this repository, navigate to it, and runpipinstall-e.It is important that you use thisdevelopinstall option, as the microphone configuration requires that
this package is installed in-place.Configuring Your MicrophoneNow we will configuremicrophoneto use the appropriate microphone on your computer.
Navigate to Microphone/microphone and run:pythonconfigure_input.pyand follow the selection prompt. This will save your microphone preference for future use. The resulting configuration file will be saved toMicrophone/microphone/config.ini.
The contents of the file will look something like this[input device]
name = Desktop Microphone (RØDE NT-USB)
index = 1You can editthis fileto change the recording settings (e.g. the sampling rate) used to sampled audio from your microphone.Testing Your MicrophoneNavigate to Microphone and run:pythontest_input.pyThis should record and play back a brief audio clip using the microphone selected during configuration.Recording Audiofrommicrophoneimportrecord_audio# Record 10 seconds of audiobyte_encoded_signal,sampling_rate=record_audio(10)Playing Audiofrommicrophoneimportplay_audio# Play 10 seconds of audioplay_audio(byte_encoded_signal,10)
Package: week-by-week
This package "week by Week"is attempt to have Python library thatGenerate week range from pandas dataframe from the first
data point date to the current or a given dateGroup pandas row into weekly base on the date/timestamp columnRelease Logweek-by-week  version 3.14.0a0 (Released, June 21, 2022) Weekfly Dataframe capability addedweek-by-week  version 3.14.0 (Released, June 20, 2022)Usage after installationfrom week_by_week import WeekRangeInstantiate the classget_weeks = WeekRange(df, 'timestamp','2022/06/01', WK_start='sun')Required parameter are:
1. df -- pandas dataframe
2. timestamp -- date columnin your df
3. WK_start change between 'Mon' to 'Sun'
Optional parameter:
1. end_datecallgetAllweeks()`` method to retrieve all weeksweeks = get_weeks.getAllweeks()```And to retrieve data splitted into week range,
invokegetWeekData()print(get_weeks.getWeekData())To retrieved Pandas Dataframe splited into week
invoke the following interface methodfor week in get_weeks.retunpandasDF():
    print(week)
Package: weekly-calendar
WeeklyCalendarA simple library to deal with weekly opening hours and other recurrent weekly eventsUsageMethods will either return a Boolean or datetime based intervals.fromweekly_calendarimportWeeklyCalendarfromdatetimeimportdatetime,timedeltanow=datetime.now()typical_week=WeeklyCalendar(resolution_in_minutes=60)# typical_week is mapped into a bitmap with a bit representing one hourasserttypical_week.is_idle(now)typical_week.add_busy_interval(now,now+timedelta(hours=3))# the date doens't really matter, only the day of the week doesasserttypical_week.is_busy(now)busy_intervals=typical_week.get_busy_intervals(now,now+timedelta(hours=5))# The result is a list of intervals (start_time, end_time)idle_intervals=typical_week.get_idle_intervals(now,now+timedelta(hours=5))# The result is a list of intervals (start_time, end_time)You can also do union and intersection of differentWeeklyCalendarobjects:fromweekly_calendarimportWeeklyCalendartw_60=WeeklyCalendar(resolution_in_minutes=60)tw_30=WeeklyCalendar(resolution_in_minutes=30)# resulting objects will have the lowest resolutiontw_union=tw_30+tw_60tw_intersection=tw_30*tw_60You can change resolution of an existingWeeklyCalendarobject:fromweekly_calendarimportWeeklyCalendartw_60=WeeklyCalendar(resolution_in_minutes=60)tw_60_to_30=tw_60.copy(resolution_in_minutes=30)YourWeeklyCalendarobject is serializable:fromweekly_calendarimportWeeklyCalendartw=WeeklyCalendar()str_repr=tw.dumps()tw_loaded=WeeklyCalendar.loads(str_repr)# checks equal resolution, bitmap, and extra parametersasserttw==tw_loaded
Package: weekshot-lottery-winner-selection
Weekshot Lottery Winner SelectionGitHubPyPIInstallationpip install weekshot_lottery_winner_selectionorpoetry add async-casbin-weekshot_lottery_winner_selection-adapterSimple Example# Stdlib:importasyncio# Thirdparty:fromweekshot_lottery_winner_selectionimportgenerate_random_numbersasyncdefmain():numbers=awaitgenerate_random_numbers(api_key="RANDOM_ORG_API_KEY",max_number=200,count=5,)print(numbers)asyncio.run(main())LicenseThis project is licensed under theMIT license.
Package: weeman
Installation$pipinstallweemanFeaturesweeman, ** Powerful HTTP server for Termux**How it works$ pip install weeman
$ weemanUsage$ weeman [-h|i|v|a|r]

options :-
-h : print help
-i : install
-v : version
-a : about us
-r : remove


Created by Parixit Sutariya
Github : github.com/Bhai4You
Blogspot : https://bhai4you.blogspot.comGithub
Package: weenect-gps-api
Weenect-GPS-requestsPython library for interacting with Weenect GPS api. No liability is accepted for the use of this code - it was reverse engineered for use in a personal project.Installationpip install weenect-gps-apiUsageimport weenect

username = 'john.appleseed@domain.com',
password = 'p4ssw0rd'

web = weenect.webAPI(username,password)

#returns requests.Response object
r = web.getTrackers()
print(r.status_code)
print(r.json())

web.logout()If you have any problems, open an issue and I'll help you out
Package: weenspace-django-jwt
JSON Web Token authentication for Django GraphQL.Fantasticdocumentationis available athttps://github.com/WeenSpace/weenspace-django-jwt.InstallationInstall last stable version from Pypi:pipinstallweenspace-django-jwtAddAuthenticationMiddlewaremiddleware to yourMIDDLEWAREsettings:MIDDLEWARE=[# ..."django.contrib.auth.middleware.AuthenticationMiddleware",# ...]AddJWTMiddlewaremiddleware to yourGRAPHENEsettings:GRAPHENE={"SCHEMA":"mysite.myschema.schema","MIDDLEWARE":["django_jwt.middleware.JWTMiddleware",],}AddJWTBackendbackend to yourAUTHENTICATION_BACKENDS:AUTHENTICATION_BACKENDS=["django_jwt.backends.JWTBackend","django.contrib.auth.backends.ModelBackend",]SchemaAddweenspace-django-jwtmutations to the root schema:importgrapheneimportdjango_jwtclassMutation(graphene.ObjectType):create_token=django_jwt.Create.Field()verify_token=django_jwt.Verify.Field()refresh_token=django_jwt.Refresh.Field()schema=graphene.Schema(mutation=Mutation)