Saravanan666/pypi-org huggingface dataset:
Package: webunit2
webunit2is a spiritual successor toRichard Jones’ webunit, but is by no means a fork.  This
library has been built from the ground up, complete with documentation and
testing.  It’s alsohosted on GitHub,
making it a cinch to fork.DocumentationDocumentation is available on PyPi..You can also build the documentation yourself.  Make sure Sphinx is installed
by running:$ easy_install -U sphinxThen, clone the repository,cdinto it, and run:$ python setup.py build_sphinxDocumentation is available inbuild/sphinx/html.Getting StartedGetting started is really, really easy.  All you need to do is implementwebunit2.testcase.Testcaseand start writing unit tests.import webunit2

class TestMyApp(webunit2.TestCase):

    def __init__(self):
        # You aren't required to initialize the base class here, but it
        # makes dealing with subsequent requests easier--because they can
        # be relative paths!
        webunit2.TestCase.__init__(self, "http://myapp.com")

    def test_some_url(self):
        # Just do a normal get
        self.get('/somepath')

        # Lets post some data
        self.post('/somepath', post_params={"key": "value"})

        # No helper function for your HTTP method?  No problem!
        self.make_request("HEAD", "/somepath")Of course, because this is a unit testing framework, you’ll probably be making
a lot of assertions–especially in content.  That’s easy too!def test_for_content(self):
    # Assert the word `hippo` appears in the content.
    self.get_assertContent('/something', content="hippo")
    # Assert that the `X-Customheader` header was set.
    self.get_assertHeader('/something', 'X-Customheader')If either of these fail (i.e., the return code is not 200 or the content does
not containhippo), anAssertionErroris raised as normal.  And of
course, if you need to check for multiple values on the response, the sameassert*functions are available directly on the response.  For example, the
above could be rewritten as:def test_for_content_resp(self):
    resp = self.get('/something')
    # Assert the word `hippo` appears in the content.
    resp.assertContent("hippo")
    # Assert that the `X-Customheader` header was set.
    resp.assertHeader('X-Customheader')This also allows you to chain many more assertions together–i.e., checking for
headers, cookies, etc..  These werealldesigned to make testing easier, so
if you have suggestions or complaints…ContributingThe source code ishosted on Github,
which makes it a cinch to fork and contribute.Please submit issues using the
GitHub tracker!  I love getting
feedback, and I urge you to file tickets for features and/or bugs.
Package: webuntis
Bindings for WebUntis APIimport webuntis

with webuntis.Session(
    username='name',
    password='passwd',
    server='webuntis.grupet.at:8080',
    school='demo_inf',
    useragent='WebUntis Test'
).login() as s:
    for klasse in s.klassen():
        print(klasse.name)read more…Installationpip install webuntisLicensepython-webuntisis released under the 3-clause BSD license, seeLICENSEfor details.This project is now maintained again. It was originally written byuntitaker
Package: webuntis-cli
Das Projektwebuntis-clistellt eine Kommandozeile
fürWebUntiszur Verfügung. Bei Webuntis
handelt es sich um eine Software zum Erstellen und Verwalten von
Stundenplänen in Schulen.Installation/UpgradeBenutzepip(oderpip3) für eine einfache Installation. Hierfür musspythoninstalliert sein.$ pip install --upgrade webuntis-cliMit der Option--upgradewird immer die jeweils aktuelle Version installiert.BenutzungNach der Installation steht der Befehlwebuntis-clizur Verfügung. Dieser
verfügt über eine Hilfefunktion.$ webuntis-cli --helpNach dem ersten Aufruf wird die Konfigurationsdatei.webuntis-cli.iniim
Home-Verzeichnis des Nutzers angelegt. Diese muss bearbeitet und mit den
korrekten Nutzerdaten wie Schulname, Server, Benutzername und Passwort befüllt
werden.Wenn das Speichern von Passwörtern in einer Datei unerwünscht ist, kann
der Eintrag für das Passwort aus der Konfigurationsdatei entfernt werden. In
diesem Falle muss es bei jeder Ausführung eingegen werden.BeispieleEin Aufruf für den aktuellen Stundenplan von Herr Mustermann würde wie folgt
aussehen:$ webuntis-cli --lehrer MustermannEs können auch mehrere Personen angegeben werden:$ webuntis-cli --lehrer Mustermann MusterfrauEbeso können die Pläne für verschiedene Räume oder Klassen angezeigt werden.$ webuntis-cli --raum 12 13 14
$ webuntis-cli --klasse 10a 10b 10cDer anzuzeigende Zeitraum kann über die folgenden Optionen festgelegt werden:--startder erste Termin--tagedie Anzahl der angezeigten Tage$ webuntis-cli --lehrer Mustermann --start 1.1. --tage 3Probleme, Fehler oder VerbesserungsvorschlägeFehler, Probleme oder Vorschläge für Verbesserungen kannst du über denBugtracker bei
githubmelden. Hierfür
benötigst du einen einen Account bei github.EntwicklerdokumentationEs können Debugausgaben aktiviert werden, indem die UmgebungsvariableWEBUNTIS_CLI_DEBUGmit einem belibiegen Wert initialisiert wird.$ WEBUNTIS_CLI_DEBUG=1 webuntis-cli --help
Package: webup
WebUpWebUpis a Python package for uploading websites to Amazon Web Services S3
buckets.Uploads files and subdirectoriesMulti-threaded for concurrent parallel uploadsSets Cache-Control and Content-Type headersFull documentation is online atcariad.github.io/webup.InstallationpipinstallwebupUsageTo upload a directory with the default configuration:fromwebupimportuploadupload("./public","my-bucket")If the bucket's name is recorded in Systems Manager, pass a parameter name instead of a bucket name:fromwebupimportuploadupload("./public",ssm_param="/my-platform/buckets/website")Some content types are baked-in. To add more content types:fromwebupimportset_content_type,uploadset_content_type(".foo","application/foo")upload("./public","my-bucket")All files have the Cache-Control value "max-age=60" by default. To configure this:fromwebupimportset_default_maximum_age,set_maximum_age,upload# Serve sw.js with Cache-Control "max-age=0":set_maximum_age(r"^sw\.js$",0)# Serve all other JavaScript with Cache-Control "max-age=600":set_maximum_age(r"^.*\.js$",600)# Serve all other files with Cache-Control "max-age=300":set_default_maximum_age(300)upload("./public","my-bucket")To perform a dry-run:fromwebupimportuploadupload("./public","my-bucket",read_only=True)Full documentation is online atcariad.github.io/webup.LicenceWebUp is released atgithub.com/cariad/webupunder the MIT Licence.SeeLICENSEfor more information.AuthorHello! 👋 I'mCariad Ecclestonand I'm a freelance DevOps and backend engineer. My contact details are available on my personal wiki atcariad.earth.Please consider supporting my open source projects bysponsoring me on GitHub.
Package: webutils
A string of different Python modules or utilities that I find useful.
This has been a private repo for years that I’ve used in several projects
and slowly molded into amore useful set of modules.I either create, adapted from existing snippet/code, or just included
these files all together.Credit is always given to the original author. If you find something
that isn’t, please notify me immediately and I’ll give proper credit.NOTE:Some of this code is old, outdated, not used anymore at all and I
just forgot to remove it from the repository. That old and unmaintained
code will eventually be removed from this repository. Warning: That
code may be ugly! Don’t hang me for it ;)UseBasic Install:$ python setup.py build
$ sudo python setup.py installAlternative Install (Manually):Place webutils directory in your Python path. Either in your Python
installs site-packages directory or set your $PYTHONPATH environment
variable to include a directory where the webutils directory lives.Copyright & WarrantyAll documentation, libraries, and sample code are
Copyright 2010-2012 Peter Sanchez <petersanchez@gmail.com>. The library and
sample code are made available to you under the terms of the BSD license
which is contained in the included file, BSD-LICENSE.
Package: web-utils-soft
Python Project TemplateInstall dependenciesInstallpipenvto manage dependenciespip install --user pipenvIf you get a warning likeWARNING: The scripts pipenv and pipenv-resolver are installed in '/home/${REPLACE_UBUNTU_USERNAME_HERE}/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.ModifyPATHsystem variable to usepipenvnano ~/.zshrcAdd the next line at the end of the fileexport PATH="$PATH:/home/${REPLACE_UBUNTU_USERNAME_HERE}/.local/bin"Create.envfile with environment variablePIPENV_VENV_IN_PROJECT=1Finally, install dependencies using pipenvpipenv install --devSelect virtual environment in VS CodeOpen Command Prompt: Ctrl + Shift + PWritePython: Select InterpreterSelect your virtual environmentShould be something like./.venv/bin/pythonTest project with pytestpytestInstall pre-commit hooks in your repository to usepytestpre-commit installInstall commit linter hook to follow conventional commits guidelike herecommit-linter installPylintOpen Command Prompt: Ctrl + Shift + PWritePython: Select LinterSelectpylintWorking with pipenvTo activate this project's virtual environment, run pipenv shell.Alternatively, run a command inside the virtual environment with pipenv run.Template setupSetGH_TOKENsecret using a personal access token to use semantic releaseSetPYPI_TOKENsecret using an auth token from PyPI to upload your project
Package: web-utils-software
Python Project TemplateInstall dependenciesInstallpipenvto manage dependenciespip install --user pipenvIf you get a warning likeWARNING: The scripts pipenv and pipenv-resolver are installed in '/home/${REPLACE_UBUNTU_USERNAME_HERE}/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.ModifyPATHsystem variable to usepipenvnano ~/.zshrcAdd the next line at the end of the fileexport PATH="$PATH:/home/${REPLACE_UBUNTU_USERNAME_HERE}/.local/bin"Create.envfile with environment variable (to create virtual environment inside the project folder)PIPENV_VENV_IN_PROJECT=1Finally, install dependencies using pipenvpipenv install --devSelect virtual environment in VS CodeOpen Command Prompt: Ctrl + Shift + PWritePython: Select InterpreterSelect your virtual environmentShould be something like./.venv/bin/pythonTest project with pytestpytestInstall pre-commit hooks in your repository to usepytestpre-commit installInstall commit linter hook to follow conventional commits guidelike herecommit-linter installPylintOpen Command Prompt: Ctrl + Shift + PWritePython: Select LinterSelectpylintWorking with pipenvTo activate this project's virtual environment, run pipenv shell.Alternatively, run a command inside the virtual environment with pipenv run.Template setupSetGH_TOKENsecret using a personal access token to use semantic releaseSetPYPI_TOKENsecret using an auth token from PyPI to upload your project
Package: webview-android
webviewCreate WebViews for android with this little python module (still in development).To create a webview with python for android you need to use kivy / kivymd
or pydroid3, you can create a webview app with kivy like this:Examples:from kivy.uix.widget import Widget
from kivymd.app import MDApp
from webview import WebView
from kivy.lang.builder import Builder
from kivymd.uix.button import MDFlatButton
from kivymd.uix.screen import MDScreen

Builder.load_string("""
<MyWebView>
    MDFlatButton:
        text: "Push"
        pos_hint: {"center_x": .5, "center_y": .4}
        on_press: root.Push()
""")

class MyWebView(MDScreen):
    def Push(self):
        WebView("https://www.google.com")


class MyWebApp(MDApp):
    def build(self):
        return MyWebView()


if __name__ == '__main__':
    MyWebApp().run()This example can be used in Pydroid3 and in a kivy / kivymd appinstallation:pip3 install webview-android
Package: webview-flask
Proof of concept using web technologies for UI, and python to produce a desktop application.The stack is currently:pyenv: manage python versions.poetry: python dependency managementpywebview: qt/gtk webviewflask: local server and web frameworkpex: packagingmakefile: build configurationContributingThe project can also run from a venv:Setup:poetryinstall
poetryrunwebview-flaskMakefile:build: usepexto build a single executable (dist/webview_flask) with Python 3.8-3.11 as its only dependency. Flask requires 3.8.run-build: run it.
Package: webviewpy
webviewpyA tiny webview library for Python.Based onwebviewGetting startedInstallpipinstallwebviewpyAdditional operation for Linux or MacOSThe runtime of webview for Linux or MacOS must build by yourselfgit clonewebviewand build the dynalib or so librarycopy the library file to webviewpy/platform/[linux or darwin]/[x86 or x64]UsageBuild a webview based appEmbed a webview in you window like QWidget
Package: webvirtmgr
IntroductionWebVirtMgr is a libvirt-based Web interface for managing virtual machines. It allows you to create and configure new domains, and adjust a domain’s resource allocation. A VNC viewer presents a full graphical console to the guest domain. KVM is currently the only hypervisor supported.Technology:The application logic is written in Python & Django. The LIBVIRT Python bindings are used to interacting with the underlying hypervisor.Installation (Only web panel)Install WebVirtMgrSetup host server (Server for VM’s)Setup Host ServerLinksWebsiteScreenshotsWiki
Package: webvis
.. image::https://img.shields.io/pypi/v/webvis.svg:target:https://pypi.python.org/pypi/webvis:alt: PyPi versionData visualization made easierThis is a project for interactive data visualizationIt uses a dedicated web app with cards that display python variables.Check out the notebooks folder for examplesQuick startfromwebvisimportVisvis=Vis(vis_port=7007)vis.vars.test="Hello World!"# Open the browser on 7007 portvis.show()Then change the name in card to "test" viola!The values are updated dynamically, a separate thread is created that checks the changes.values can be matplotlib figures, 1-d and 2-d arrays,
and even bokeh is supported!
Package: webviz
WebvizWebviz is a static site generator that fascilitates producing visualizations
usingd3andplotly. Sites can be generated
both using markdown and the python interface. Visualizations and other page elements
can be added as plugins.HistoryWebviz (originally Webportal) was initially written and is maintained byEquinor ASAas a free visualization suite that can be
tailored to our needs, and as contribution to the free software community.This first initial release on pypi is just a placeholder. The first real deploy
will come from Travis andhttp://travis-ci.com/Statoil/webviz.
Package: webviz-config-equinor
Webviz config theme for EquinorEnables Equinor theme for Webviz applications build throughwebviz-config.The simplest way of installingwebviz-config-equinoris to runpipinstallwebviz-config-equinorIf you want to download the latest source code and install it manually you
can rungitclonegit@github.com:equinor/webviz-config-equinor.gitcdwebviz-config-equinor
pipinstall.After installation you can enable the Equinor theme by e.g.webvizbuildyour_config.yaml--themeequinorTerms and conditionsThis repository, both as a whole and individual files,
are fully owned by Equinor.All rights reserved.You are allowed to install and store the content on your computer, but only
for your own personal testing in anwebvizapplication. Non-personal
and public usage requires approval by Equinor.You are allowed to use the overall structure as a guide on how to
create a newwebviztheme, but all references to Equinor should
be removed in your new theme.Any other kind of use, reproduction, translation, adaptation, arrangement,
any other alteration, distribution or storage of this repository in any
form and by any means, in whole or in part, without the prior written
permission of Equinor is prohibited.Neither Equinor nor any of its subsidiaries accept liability for any direct,
indirect, special, substantial or other losses or damage of whatsoever kind
arising from access to, or the use of this repository or any
information contained in it.This notice shall be governed by and construed in accordance with Norwegian law.If any provision of this notice shall be unlawful, void or for any reason
unenforceable then that provision shall be deemed severable and shall not
affect the validity and enforcability of the remaining provisions.
Package: webviz-core-components
Webviz core componentswebviz_core_componentsis a Dash component library for use inwebviz. A storybook showing all available components is available athttps://equinor.github.io/webviz-core-components/storybook-static.You can quickly get started with:Runpip install webviz-core-componentsRunpython usage.pyVisithttp://localhost:8050in your web browserHow to contributeInstall dependenciesIf you want to build and develop yourself, you should fork + clone the repository, and
then:Install npm packages.npm ci --ignore-scripts --prefix ./reactInstall python packages required to build components.pip install .[dependencies]
pip install dash[dev]Install the python packages for testing.pip install .[tests]Write component code inreact/src/lib/components/<ComponentName>/<ComponentName>.tsxHave a look at other components to see how the directory and file structure looks like.The demo app is inreact/src/demoand is where you will import an example of your
component. To start the existing demo app, runnpm start --prefix ./react.To test your code in a Python environment:Build your codenpm run build --prefix ./reactInstall the Python pacakge in development mode (if not already done and
assuming you are using a virtual environment):pip install -e .Create a new example inexamples/which uses your new component.Write tests for your component.PythonPython tests exist intests/. Take a look at them to see how to write tests using
the Dash test framework.Run the tests withpytest tests.JavaScriptJavaScript tests exist inreact/tests. Take a look at them to see how to write tests using
the Jest test framework.Add custom styles to your component by putting your custom CSS files into
your distribution folder (webviz_core_components).Make sure that they are referenced inMANIFEST.inso that they get
properly included when you're ready to publish your component.Make sure the stylesheets are added to the_css_distdict inwebviz_core_components/__init__.pyso dash will serve them
automatically when the component suite is requested.You can also include stylesheets directly in your component by adding the stylesheet to your component's directory and importing it viaimport "./<ComponentName>.css. Make sure that the class names in your stylesheet
are starting with your component's name and two underscores:.MyComponent__MyClassName.
Package: webviz-ert
Web based visualization for ERTWhat is Webviz-ertWebviz-ert is a visualization tool for ERT based ondashandwebviz-config.Download projectThe code is hosted on GitHub:https://github.com/equinor/webviz-ert# From the downloaded project's root folder - to installpipinstall.Running testsMake sure that you have a browser and driver available for running the tests,
e.g. chrome / chromium and the chrome driver, which should be installed /
downloaded as binaries and made available in the path.# From the downloaded project's root folder - to run testspipinstall-rtest_requirements.txtcdtests
pytestRun Webviz-ertWebviz-ert connects automatically to a storage server running inERT.
Here are a few steps to get an example version of webviz-ert running.# Run simulations in ert - <ert-root-folder>/test-data/local/poly_example/ertensemble_smoother--target-casesmootherpoly.ert# After simulation has finished, start webviz-ert from the same location withertvis# Alternatively, you might have to supply the config file if you're using the# classic ert storage solution:ertvispoly.ertExampleStart upPlot viewerObservation AnalyzerParameter comparisonResponse correlation
Package: webviz-petech
Webviz petroleum technology pluginswebviz-petechcontainswebvizplugins
relevant for petroleum technology. Specific plugins might at some later
point in time be transferred to the mainwebviz repository.From a user point of view, plugins are imported similarly regardless of it
being one from the main repository or "pure plugin repositories" like this one.
After installation, e.g. the history match visualization from this repository
can be imported asfromwebviz.page_elementsimportHistoryMatchTo compare, theMapvisualization from the main repository is imported asfromwebviz.page_elementsimportMap
Package: webviz-subsurface
Webviz subsurface:sparkles::eyeglasses:Live demo applicationIntroductionThis repository contains subsurface specific standardwebvizcontainers, which are used as
plugins inwebviz-config.InstallationThe easiest way of installing this package is to runpipinstallwebviz-subsurfaceAdd--upgradeif you have installed earlier, but want to upgrade to a newer version.If you want to install the latest, unreleased, code you can instead runpipinstallgit+https://github.com/equinor/webviz-subsurfaceUsage and documentationFor general usage, see the documentation onwebviz-config. End-user documentation for
the subsurface containers are automatically built and hosted on thegithub pagesfor this repository.There is also alive demo applicationshowing how a created application can look like, using themasterbranch of this repository.Example webviz configuration filesExamplewebvizconfiguration files, and corresponding test data, is available athttps://github.com/equinor/webviz-subsurface-testdata.See that repository for instructions on how to download and run the examples.Creating new elementsIf you are interested in creating new elements which can be configured through
the configuration file, take a look at thewebviz-config contribution guide.You can do automatic linting of your code changes by runningblack--checkwebviz_subsurfacetests# Check code stylepylintwebviz_subsurfacetests# Check code qualitybandit-r-c./bandit.ymlwebviz_subsurfacetests# Check Python security best practiceReview of contributionsWhen doing review of contributions, it is usually useful to also see the resulting application live, and
not only the code changes. In order to facilitate this, this repository is using GitHub actions.When on a feature branch, and a commit message including the substring[deploy test]arrives, the GitHub
action workflow will try to build and deploy a test Docker image for you (which you then can link to a web app with
e.g. automatic reload on new images). All you need to do in your own fork is to add
GitHub secrets with the following names:review_docker_registry_url: The registry to push to (e.g.myregistry.azurecr.io)review_docker_registry_username: Registry login username.review_docker_registry_token: Registry login token (or password).review_container_name: What you want to call the container pushed to the registry.You are encouraged to rebase and squash/fixup unnecessary commits before pull request is merged tomaster.DisclaimerThis is a tool under heavy development. The current configuration file layout,
also for subsurface containers, will therefore see large changes.
Package: webvpn-ng
WebVPN NGTCP overBUAA WebVPN. 把WebVPN转换成TCP协议，可以转发基于TCP的任意端口（例如：SSH，HTTPS）。1. RequirementsPython >= 3.82. Installpipinstall--upgradewebvpn-ng3. UsageLogin使用BUAA统一认证账号密码登录WebVPN，个人token请私聊我获取。wvpnloginUSERNAMEPort Forwarding例如，使用本地2222端口访问校内的10.251.0.24:22：# terminal #1wvpnforward--port2222--rhost10.251.0.24# terminal #2ssh-p2222yangming@localhost# terminal #3scp-P2222yangming@localhost:/data/data.pth.使用本地的8000端口访问校内的211.71.15.34:6000（Tensorboard）：# terminalwvpnforward--port8000--rhost211.71.15.34--rport6000# web browseropenhttp://localhost:8000