Saravanan666/pypi-org huggingface dataset:
Package: wappstorest
python-wappsto-restUsecase Examples:importuuidfromwappstorestimportWappstoRestfromwappstorestimportWappstoServicewrest=WappstoRest()wrest.login(username='the_user',password='SuperSecurePasswordThatYouDoNotRemember')the_network=wrest.service(WappstoService.NETWORK).service_id(uuid.uuid4()).read()print(the_network.name)print(the_network.meta.id)wrest.logout()fromwappstorestimportWappstoRestfromwappstorestimportWappstoServicefromwappstorestimportWappstoPathfromwappstorestimportWappstoSchemawrest=WappstoRest()wrest.login(username='the_user',password='SuperSecurePasswordThatYouDoNotRemember')# Is this even possible?device_list:WappstoSchema.response.IdList=wrest.service(WappstoService.DEVICE).filter(WappstoPath.Device.meta.parent.name=="Production").read()# Create a new device under an existing networkthe_device:WappstoSchema.response.Device=wrest.service(WappstoService.DEVICE).parent(parent_id=UUID("7b0cd39d-aa9a-487e-943e-e19b420e3396"),parent_service=WappstoService.NETWORK).create(WappstoSchema.create.Device(name='button'))wrest.logout()importdatetimefromwappstorestimportWappstoRestfromwappstorestimportWappstoServicefromwappstorestimportWappstoPathfromwappstorestimportWappstoSchemawrest=WappstoRest()wrest.login(username='the_user',password='SuperSecurePasswordThatYouDoNotRemember',admin=True,)user_list:list[WappstoSchema.response.User]=wrest.service(WappstoService.USER).filter(WappstoPath.User.meta.created<datetime.datetime.now()).filter("this.user.name~=test_").option(fullsearch=True,).admin().read(expand=3)wrest.logout()LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details.Notes:update schema -> patchcreate schema -> postoutput schema -> response on anything.query schema -> OptionsKnown Bugs...TODO ListSchemaFixconstr,conint... to Field:Pydantic Schema.There need to be a Create Schema & response schema (output).Code baseAdd more/better logging logs.Push to pip.TestsAdd more test to get a 100%-ish testing coverage.v0.0.1 (Febuary 21, 2023)AddedFirst Release.
Package: wappy
wappyA tool to discover technologies in web applications from your terminal. It uses thewap library, that is a python implementation of the greatWappalyzerbrowser extension. In fact, it uses
the rules defined in the filetechnologies.jsonof theWappalyzer repository.Note that results could not be exactly the same as theWappalyzerextension. This is because part of the information collected by wappy comes from the raw html, before being modified by javascript, as would be the case in a browser.SetupTo install from pypi:pip3installwappyTo install from repo:gitclonehttps://github.com/blackarrowsec/wappycdwappy/
makeinstallTo install dependencies:gitclonehttps://github.com/blackarrowsec/wappycdwappy/
make
python3wappy.py-hTo update technologies.json file:makeuptechsUsageAs input, you should provide urls, and wappy will make a request and identify
technologies based on the response.To get technologies from url:$python3wappy.pyhttps://twitter.com
https://twitter.com/Express
https://twitter.com/Node.jsTo get technologies from several urls you can provide a file or send
urls for stdin:$caturls.txt|python3wappy.py
$python3wappy.pyurls.txt
https://www.google.com/GoogleWebServer
https://twitter.com/Express
https://twitter.com/Node.js
https://www.reddit.com/Varnish
https://www.reddit.com/Reddit
https://www.reddit.com/PythonIn json format:$python3wappy.pyurls.txt-j[{"name":"Google Web Server","url":"https://www.google.com/"},{"name":"Express","url":"https://twitter.com/"},{"name":"Node.js","url":"https://twitter.com/"},{"name":"Reddit","url":"https://www.reddit.com/"},{"name":"Python","url":"https://www.reddit.com/"},{"name":"Varnish","url":"https://www.reddit.com/"}]Show version (-b), categories (-k) and confidence (-c) with;as delimiter (-d):$python3wappy.pyhttps://python.org-kbc-d';'https://www.python.org/;jQuery;1.8.2;100;JavaScriptlibraries
https://www.python.org/;Varnish;;100;Caching
https://www.python.org/;Modernizr;;100;JavaScriptlibraries
https://www.python.org/;Nginx;;100;Webservers,ReverseproxiesIn json format:$python3wappy.pyhttps://python.org-kbc-j[{"name":"Modernizr","url":"https://www.python.org/","version":"","confidence":100,"categories":["JavaScript libraries"]},{"name":"jQuery","url":"https://www.python.org/","version":"1.8.2","confidence":100,"categories":["JavaScript libraries"]},{"name":"Varnish","url":"https://www.python.org/","version":"","confidence":100,"categories":["Caching"]},{"name":"Nginx","url":"https://www.python.org/","version":"","confidence":100,"categories":["Web servers","Reverse proxies"]}]Adding new technologiesIf you want that wappy detects a new technology, you can add your rules to thetechnologies.jsonfile and load it with wappy.Please, consider to do a pull request toWappalyzer repoand share your rules with the community. Follow the rules inAdding a new technology.Please do not submit pull requests related to technologies.json, since this repository is
not related with Wappalyzer.AuthorEloy Pérez (@Zer1t0) [www.blackarrow.net-www.tarlogic.com]LicenseAll the code included in this project is licensed under the terms of the GNU GPLv3 license.
Package: waqi-python
waqi-pythonPython wrapper for the World Air Quality Index Project JSON APIInstallationGet an API token from theWorld Air Quality Index ProjectCreate an environment variable called AQIPY_TOKEN:export AQIPY_TOKEN='<your_new_token>'pip install waqi-pythonUsage>>> from waqi_python import client as base
>>> client = base.WaqiClient()
>>> my_station = client.get_local_station()
>>> my_station.city.name
'San Francisco-Arkansas Street, San Francisco, California'
>>> my_station.aqi
46
Package: warapidpro
Wassup Integration for RapidPro.pip install -e '.[dev]'docker run praekeltfoundation/rapidpro-engage:latestSetting up the applicationAll environment variables forrapidpro-dockerapply here.AddwarapidprotoEXTRA_INSTALLED_APPSin your environment variables.You will also need at least 1 celery instance running. Use the command to run the worker:/venv/bin/celery--beat--app=tembaworker--loglevel=INFO--queues=celery,msgs,flows,handler--max-tasks-per-child=10Note: that you should give your web application between 1-2GB of RAM in order to avoid uWSGI worker failures.Get a oAuth client id and a client secret fromhttps://wassup.p16n.org/oauth/applications/or create a new one athttps://wassup.p16n.org/oauth/applications/.Client typeshould beconfidentialandAuthorization grant typeshould beauthorization code.Make sure to setup the redirect uris correctly for your installation. These should be formatted as follows:https://<your domain>/channels/claim/wad/
https://<your domain>/channels/claim/wag/Environment VariablesWASSUP_AUTH_URLdefaults tohttps://wassup.p16n.orgWASSUP_AUTH_CLIENT_IDas per above.WASSUP_AUTH_CLIENT_SECRETas per above.
Package: warble
PyWarblePyWarble provides Python classes that wrap around the exported functions of theWarbleC library.InstallUsepipto install the warble package.pipinstallwarbleAs this project requires compiling thewarbleC library, you will need to configure your target machine to have the
appropriate build environment before runningpipas described in warble’sREADME.WindowsThe setup script will build the dll withMSBuild.  Make sure yourPathsystem variable has an entry pointing to theMSBuildexecutable and that you have the necessaryWindows 10 SDKinstalled.LinuxInstall the required tools and packages detailed in theLinuxbuild section.UsageSee the Python scripts in theexamplesfolder.
Package: warbusses
This project contains some information about busses in Warsaw. You can check out
locations where busses exceed 50km/h in calculate_speed.py module. Also you can track
the busses and their times on particular bus_stops in check_punctuality.py module.Modules with ‘create’ in their names are responsible for creating useful dataframes and saving
them in .csv files.bus_coordinates.csv contains busses and their coordinates measured at specific time.bus_stops.csv contains bus_stops: their names and coordinates.coordinates_speed.csv contains coordinates of busses.speed.csv contains speeds of busses between time periods.
Package: warc
WARC (Web ARChive) is a file format for storing web crawls.http://bibnum.bnf.fr/WARC/Thiswarclibrary makes it very easy to work with WARC files.:import warc
f = warc.open("test.warc")
for record in f:
    print record['WARC-Target-URI'], record['Content-Length']DocumentationThe documentation of the warc library is available athttp://warc.readthedocs.org/.LicenseThis software is licensed under GPL v2. SeeLICENSEfile for details.
Package: warc3-wet
warc3-wet: Python3 library to work with WARC and WET files==============================================Note: This is a fork of the original (now dead) warc repository.WARC (Web ARChive) is a file format for storing web crawls.http://bibnum.bnf.fr/WARC/This `warc` library makes it very easy to work with WARC files.::import warcwith warc.open("test.warc") as f:for record in f:print(record['WARC-Target-URI'], record['Content-Length'])And WET files.::import warcwith warc.open("test.warc.wet") as f:for record in f:print(record['WARC-Target-URI'], record['Content-Length'])Documentation-------------The documentation of the warc library is available at http://warc.readthedocs.org/.Apart from the install from pip, which will not work for this warc3 version, theinterface as described there is unchanged.License-------This software is licensed under GPL v2. See LICENSE_ file for details... LICENSE: http://github.com/internetarchive/warc/blob/master/LICENSEAuthors-------Original Python2 Versions:* Anand Chitipothu* Noufal IbrahimPython3 Port:* Ryan Chartier* Jan Pieter Bruins Slot* Almer S. TigelaarModification* Willian ZhangChange Log-------0.2.3Support seeking in WARC/WET0.2.2Allow WET parseolder...see https://github.com/internetarchive/warc
Package: warc3-wet-clueweb09
Note: This is a fork of the original (now dead) warc repository.Updated to handle problems with theClueWeb09files.Changes are based on thisrepository(which only supports python2)WARC (Web ARChive) is a file format for storing web crawls.http://bibnum.bnf.fr/WARC/Thiswarclibrary makes it very easy to work with WARC files.:import warc
with warc.open("test.warc") as f:
    for record in f:
        print(record['WARC-Target-URI'], record['Content-Length'])And WET files.:import warc
with warc.open("test.warc.wet") as f:
    for record in f:
        print(record['WARC-Target-URI'], record['Content-Length'])DocumentationThe documentation of the warc library is available athttp://warc.readthedocs.org/.Apart from the install from pip, which will not work for this warc3 version, the
interface as described there is unchanged.LicenseThis software is licensed under GPL v2. SeeLICENSEfile for details.AuthorsOriginal Python2 Versions:Anand ChitipothuNoufal IbrahimPython3 Port:Ryan ChartierJan Pieter Bruins SlotAlmer S. TigelaarModification
* Willian ZhangChange Log0.2.5
replace utf8 errors in headers0.2.4
support ClueWeb090.2.3
Support seeking in WARC/WET0.2.2
Allow WET parseolder…
seehttps://github.com/internetarchive/warc
Package: warc-knot
knot-warc - Python library to work with Web ARChive filesNote: This is one of forks of original WARC repository. It was primarily created for projects ofKnowledge Technology Research Group, but its public-wide usage isn't limited.Fork historyhttps://github.com/internetarchive/warc(original Python 2 library)https://github.com/recrm/warc3(Python 3 port)https://github.com/jpbruinsslot/warc3(Python 3 port)https://github.com/Willian-Zhang/warc3(WET support)WARC (Web ARChive) is a file format for storing web crawls (seehttp://bibnum.bnf.fr/WARC/).ExamplesThiswarclibrary makes it very easy to work with WARC files:importwarcwithwarc.open("test.warc")asf:forrecordinf:print(record['WARC-Target-URI'],record['Content-Length'])And WET files:importwarcwithwarc.open("test.warc.wet")asf:forrecordinf:print(record['WARC-Target-URI'],record['Content-Length'])There are some examples provided without warranty and support (just for inspiration) inexamplesfolder. They are not updated at all, too.DocumentationThe documentation of this fork of the warc library is onGithub Pages(alternatively seeoriginal documentation).InstallationYou can install this fork of warc library usingpip:pipinstallwarc-knotLicenseThis software is licensed under GPL v2. SeeLICENSEfile for details.AuthorsOriginal Python2 Versions:Anand ChitipothuNoufal IbrahimPython3 Port:Ryan ChartierJan Pieter Bruins SlotAlmer S. TigelaarModifications:Willian ZhangMichal ŠmahelChange Log0.2.5:Update sphinx docs0.2.4:Fix for Python 3.10+Upgrade HTTP --> HTTPS in tests0.2.3Support seeking in WARC/WET0.2.2Allow WET parseOlder...seehttps://github.com/internetarchive/warc
Package: warc-s3
💾 warc-s3Scalable and easy WARC records storage on S3.InstallationInstall the package from PyPI:pipinstallwarc-s3UsageTODODevelopmentTo build this package and contribute to its development you need to install thebuild, andsetuptoolsandwheelpackages:pipinstallbuildsetuptoolswheel(On most systems, these packages are already pre-installed.)InstallationInstall package and test dependencies:pipinstall-e.[tests]TestingVerify your changes against the test suite to verify.flake8warc_s3# Code formatmypywarc_s3# Static typingpylintwarc_s3# LINT errorsbandit-cpyproject.toml-rwarc_s3# Securitypytestwarc_s3# Unit testsPlease also add tests for your newly developed code.Build wheelsWheels for this package can be built with:python-mbuildSupportIf you hit any problems using this package, please file anissue.
We're happy to help!LicenseThis repository is released under theMIT license.
Package: warctools
dependenciessetuptoolsunittest2python 2.6hanzo warc tools:warcvalid.pyreturns 0 if the arguments are all valid arc/warc filesnon zero on errorwarcdump.py - writes human readable summary of warcfiles:usage: python warcdump.py foo.warc foo.warc.gzautodetects input format when filenames are passedi.e recordgzip vs plaintext, warc vs arcassumes uncompressed warc on stdin if no argswarcfilter.pypython warcfilter.py pattern file file filesearches all headers for regex patternuse -i to invert searchuse -U to constrain to urluse -T to constrain to record typeuse -C to constrain to content-typeautodetects and stdin like warcdumpprints out a warc format by default.warc2warc.py:python warc2warc <input files>autodetects compression on fileargs, assumes uncompressed stdin if noneuse -Z to write compressed outputi.e warc2warc -Z input > input.gzshould ignore buggy records in inputarc2warc.pycreates a crappy warc file from arc files on inputa handful of headers are preserveduse -Z to write compressed outputi.e arc2warc -Z input.arc > input.warc.gzwarcindex.pyspits out an index like this:#WARC filename offset warc-type warc-subject-uri warc-record-id content-type content-lengthwarccrap/mywarc.warc 1196018 request /images/slides/hanzo_markm__wwwoh.pdf <urn:uuid:fd1255a8-d07c-11df-b125-12313b0a18c6> application/http;msgtype=request 193warccrap/mywarc.warc 1196631 response http://www.hanzoarchives.com/images/slides/hanzo_markm__wwwoh.pdf <urn:uuid:fd2614f8-d07c-11df-b125-12313b0a18c6> application/http;msgtype=response 3279474not great, but a startnotes:arc2warc uses the conversion rules from the earlier arc2warc.cas a starter for converting the headersI haven't profiled the code yet (and don't plan to until it falls over)warcvalid barely skirts some of the iso standard:missing things: strict whitespace, required headers check...mime quoted printable header encodingtreating headers as utf8things left to do (in no order):lots more testing.supporting pre 1.0 warc filesadd more documentationsupport more commandline options for output and filenamess3 urls-- tef thomas.figg@hanzoarchives.com
Package: ward
Wardis a Python testing framework with a focus on productivity and readability. It gives you the tools you need to writewell-documentedandscalabletests.FeaturesSee the full set of features in thedocumentation.Descriptive test names:describe what your tests do using strings, not function names.@test("simple addition")# you can use markdown in these descriptions!def_():assert1+2==3# you can use plain assert statements!Modular test dependencies:manage test setup/teardown code using fixtures that rely on Python's import system, not
name matching.@fixturedefuser():returnUser(name="darren")@test("the user is called darren")def_(u=user):assertu.name=="darren"Support for asyncio: define your tests and fixtures withasync defand call asynchronous code within them.@fixtureasyncdefuser():u=awaitcreate_user()returnawaitu.login()@test("the logged in user has a last session date")asyncdef_(user=user):last_session=awaitget_last_session_date(user.id)assertis_recent(last_session,get_last_session_date)Powerful test selection:limit your test run not only by matching test names/descriptions, but also on the code
contained in the body of the test.ward --search "Database.get_all_users"Or use tag expressions for more powerful filtering.ward --tags "(unit or integration) and not slow"Parameterised testing:write a test once, and run it multiple times with different inputs by writing it in a loop.forlhs,rhs,resin[(1,1,2),(2,3,5),]:@test("simple addition")def_(left=lhs,right=rhs,result=res):assertleft+right==resultCross platform:Tested on Mac OS, Linux, and Windows.Speedy:Ward's suite of ~320 tests run in less than half a second on my machine.Zero config:Sensible defaults mean runningwardwith no arguments is enough to get started. Can be configured usingpyproject.tomlor the command line if required.Extendable:Ward has a plugin system built with pluggy, the same framework used by pytest.Colourful, human readable output:quickly pinpoint and fix issues with detailed output for failing tests.Getting StartedHave a look at thedocumentation!How to ContributeContributions are very welcome and encouraged!See thecontributing guidefor information on how you can take part in the development of Ward.
Package: ward-coverage
Ward CoverageDisclaimer: Albeit useful already, this is a work-in-progress and should be seen as such.A coverage plugin for Python'sWard testing frameworkInstallationBuild the plugin:poetrybuildand install usingpipinstalldist/ward_coverage-0.1.1-py3-none-any.whlConfigurationTo include coverage in your test run, add the following to yourpyproject.toml:[tool.ward]hook_module=["ward_coverage"]There are several options to configure the plugin which can be included under section[tool.ward.plugins.coverage], namely:report_type, defaulting to["term"], which is a list of report types to generate. Possible values are one or more of'lcov','html','xml','json','term'thresholdfor minimum coverage, affecting the color the result panel has for some sort of visual cueAll of the options describedhere. Please note that everything here under[run]sectiongoes to[tool.ward.plugins.coverage]and other sections need their separate block (e.g[tool.ward.plugins.coverage.report]) or dictionary entry within the[tool.ward.plugins.coverage]section in toml.Example configuration[tool.ward.plugins.coverage]omit=["*test*","example.py","**/__init__.py"]report_type=["term","xml"]source=["."]branch=truerelative_files=truereport={skip_empty=true}Contributors, issues and feature requests are welcome.
Package: warden
Warden is a Python application that monitors other Python applications running locally, and ships events to a Sentry instance and metrics to a Graphite instance.Warden can tail log files, watch that processes are running, ping an HTTP url, and track memory and CPU usage.It provides a plug-in architecture allowing custom checks to be implemented.Finally, there is an API that can be used by the monitored application to publish events, and do some internal checks (e.g. for stuck threads).
Package: warden-terminal
Welcome to WARden Terminalwarden (wɔːʳdən )
A warden is responsible for making sure that the laws or regulations are obeyed.InstallationClone the git repository into any directory:gitclonehttps://github.com/pxsocs/warden_terminalThen run:cdwarden_terminal
pip3install-rrequirements.txt
python3node_warden.pyYou need Tor Running for the app to work. Instructionshere.Theconfig.inifile can be edited with:nanoconfig.iniThere you can edit the currencies, etc.EnjoyPlease note that this is ALPHA software. There is no guarantee that the
information and analytics are correct. Also expect no customer support. Issues are encouraged to be raised through GitHub but they will be answered on a best efforts basis.
Package: ward-labels-upload
Ward Analytics Labels Upload UtilityThis utility is used to upload labels to the Ward Analytics Database.It is for internal use only.Installationpipinstallward-labels-uploadUsageThe Label ObjectTheLabelobject is used to represent a label. It has three fields:address: The address of the label.label: The label itself.description: A description of the label.It also has ais_address_case_sensitivefield, which defaults toFalse. This field is used to determine whether the address field should be treated as case sensitive or not. In most cases, this field should be left asFalse(For blockchains such as Ethereum, addresses are not case sensitive).fromward_labels_uploadimportLabellabel=Label(address="0x12eF3",label="label1",description="description1")print(label)>>>Label(address="0x12ef3",label="label1",description="description1",is_address_case_sensitive=False)fromward_labels_uploadimportLabellabel=Label(address="0x12eF3",label="label1",description="description1",is_address_case_sensitive=True)print(label)>>>Label(address="0x12eF3",label="label1",description="description1",is_address_case_sensitive=True)Label Uploadfromward_labels_uploadimportLabel,LabelUploaderuploader=LabelUploader(api_key="your_api_key")labels=[Label(address="0x12ef3",label="label1",description="description1"),Label(address="0x45af6",label="label2",description="description2"),Label(address="0x78cs9",label="label3",description="description3"),]uploader.upload_labels(labels=labels)TheLabelUploaderclass also takes an optionalbase_urlparameter. This is the base URL of the Ward Analytics API. It defaults tohttps://api.wardanalytics.net, which is the production API.Label Deletionfromward_labels_uploadimportLabel,LabelUploaderuploader=LabelUploader(api_key="your_api_key")labels=[Label(address="0x12ef3",label="label1"),Label(address="0x45af6",label="label2"),Label(address="0x78cs9",label="label3"),]uploader.delete_labels(labels=labels)In the case of deletion, the description field is unnecessary. This happens because a label is uniquely identified by the combination of its address and label.Label Retrievalfromward_labels_uploadimportLabel,LabelUploaderuploader=LabelUploader(api_key="your_api_key")addresses=["0x12ef3","0x45af6","0x78cs9",]labels=uploader.get_labels(addresses=addresses)