Saravanan666/pypi-org huggingface dataset:
Package: zester
Zester is a library that makes it easier to develop Python clients for websites without APIs.No lxml, no XPath, just javascript.Let’s make a client library forHacker Newsby saving the following code in a file named hnclient.py:from zester import MultipleClient, Attribute

class HNClient(MultipleClient):
    url = "http://news.ycombinator.com/"
    title = Attribute(selector="$('.title a')", modifier="$(el).html()")
    link = Attribute(selector="$('.title a')"), modifier="$(el).attr('href')")
    points = Attribute(selector="$('.subtext span')", modifier="$(el).html().replace(' points', '')")Now, let’s use the client we just made. Open a python shell:>>> from hnclient import HNClient
>>> client = HNClient()
>>> stories = client.process()
>>> stories[0]
HNClientResponse(points=u'200', link=u'http://daltoncaldwell.com/what-twitter-could-have-been', title=u'What Twitter could have been')
>>> print stories[0].title
What Twitter could have been
>>> print stories[0].link
http://daltoncaldwell.com/what-twitter-could-have-been
>>> print stories[0].points
56We subclassed MultipleClient there because we were planning on returning multiple results. If we wanted to make a client for something likeWeather.govthat returned a single result, we could do something like this:from zester import SingleClient, Attribute

class WeatherClient(SingleClient):
    url = "http://forecast.weather.gov/MapClick.php?lat={lat}&lon={lng}"
    temperature = Attribute(selector="$('.myforecast-current-lrg').html()")
    humidity = Attribute(selector="$('.current-conditions-detail li').contents()[1]")
    heat_index = Attribute(selector="$('.current-conditions-detail li').contents()[11]")

    def __init__(self, lat, lng, *args, **kwargs):
        super(WeatherClient, self).__init__(*args, **kwargs)
        self.url = self.url.format(lat=lat, lng=lng)This also demonstrates how you can allow arguments to be taken:>>> from weather_client import WeatherClient
>>> client = WeatherClient(lat=40.7143528, lng=-74.0059731)
>>> curr_weather = client.process()
>>> curr_weather
WeatherClientResponse(heat_index=u'82\xb0F (28\xb0C)', temperature=u'80\xb0F', humidity=u'58%')
>>> print curr_weather.temperature
80°F
>>> print curr_weather.humidity
58%
>>> print curr_weather.heat_index
82°F (28°C)InstallationZester is dependant uponGhost.py. You must install it before installing Zester. Ghost.py will also require the installation of either PyQt or PySide.After Ghost.py is installed, to install zester:$ pip install zester
Package: zestful-parse-ingredient
Ingredient Parser (Zestful Client)OverviewParse recipe ingredient strings into structured data.ExamplesParse a single ingredientimportjsonimportparse_ingredientingredient=parse_ingredient.parse('2 1/2 tablespoons finely chopped parsley')print(json.dumps(ingredient.as_dict())){"quantity":2.5,"unit":"tablespoon","product":"parsley","productSizeModifier":null,"preparationNotes":"finely chopped","usdaInfo":{"category":"Vegetables and Vegetable Products","description":"Parsley, fresh","fdcId":"170416","matchMethod":"exact"},"confidence":0.9858154,}Parse multiple ingredientsimportjsonimportparse_ingredientingredients=parse_ingredient.parse_multiple(['½ tsp brown sugar','3 large Granny Smith apples')print(json.dumps(ingredients.as_dict()))[{"ingredientRaw":"½ tsp brown sugar","ingredientParsed":{"preparationNotes":"finely chopped","product":"brown sugar","productSizeModifier":null,"quantity":0.5,"unit":"teaspoon","usdaInfo":{"category":"Sweets","description":"Sugars, brown","fdcId":"168833","matchMethod":"exact"},"confidence":0.9857134,},"error":null,},{"ingredientRaw":"3 large Granny Smith apples","ingredientParsed":{"preparationNotes":null,"product":"Granny Smith apples","productSizeModifier":"large","quantity":3.0,"unit":null,"usdaInfo":{"category":"Fruits and Fruit Juices","description":"Apples, raw, granny smith, with skin (Includes foods for USDA's Food Distribution Program)","fdcId":"168203","matchMethod":"exact"},"confidence":0.9741028,},"error":null,}]Parse ingredients using RapidAPIIf you have aRapidAPI subscriptionto Zestful, you can use your API key as follows:importjsonimportparse_ingredient# Replace this with your key from RapidAPI# https://rapidapi.com/zestfuldata/api/recipe-and-ingredient-analysisRAPID_API_KEY='your-rapid-api-key'client=parse_ingredient.client(rapid_api_key=RAPID_API_KEY)ingredient=client.parse_ingredient('2 1/2 tablespoons finely chopped parsley')print(json.dumps(ingredient.as_dict()))Use private Zestful serverIf you have a private Zestful ingredient parsing server as part of an Enterprise plan, you can use the library as follows:importjsonimportparse_ingredientENDPOINT_URL='https://zestful.yourdomain.com'client=parse_ingredient.client(endpoint_url=ENDPOINT_URL)ingredient=client.parse_ingredient('2 1/2 tablespoons finely chopped parsley')print(json.dumps(ingredient.as_dict()))InstallationFrom pippipinstallzestful-parse-ingredientFrom sourcegitclonehttps://github.com/mtlynch/zestful-client.gitcdzestful-client
pipinstall.How does it work?The library sends ingredient parsing requests to a remote Zestful ingredient parsing server. By default, the library uses the demo instance of Zestful. For production usage, you should set a RapidAPI key or private Zestful server instance address.LimitationsWithout a subscription, you can only parse 30 ingredients per day. To parse an unlimited number of ingredients, purchase a subscription fromZestful.Full documentationFor full documentation of each result field, see the officialZestful API documentation.
Package: zest.ploneglossaryhighlight
IntroductionThis is an extra package forProducts.PloneGlossary.
It adds a fieldhighlightto content types in your site.
With that field you can specify for a page whether terms on it should be highlighted.
Values can be yes, no, or use the value of the parent (which is the default).Support for Archetypes has been there since the first release (witharchetypes.schemaextender).
Support for Dexterity has been there since release 2.0.0 (withplone.behaviorandplone.dexterity).InstallationAdd it to the eggs option of the zope instance in your buildout.When you want Archetypes support, please usezest.ploneglossaryhighlight[archetypes].When you want Dexterity support, please usezest.ploneglossaryhighlight[dexterity].Or use both:zest.ploneglossaryhighlight[archetypes, dexterity].Run buildout and restart your Zope instance.Go to the Add-ons control panel in Plone.Install PloneGlossary.Install zest.ploneglossaryhighlight.CompatibilityRequires Products.PloneGlossary 1.5.0 or later.  Tested with latest 1.7.3.Tested with Plone 4.3 on Python 2.7.  Current latest release of PloneGlossary does not work on Plone 5.Changelog2.0.0 (2019-04-26)Added Dexterity support in a[dexterity]extra requirement insetup.py.
This hasplone.behaviorandplone.dexterityas dependencies.
[maurits]Moved Archetypes support to an[archetypes]extra requirement insetup.py.
This hasarchetypes.schemaextenderas dependency.
[maurits]Register the default adapter only for Archetypes base content, instead of everything.
[maurits]Test only with Python 2.7 and Plone 4.3.
[maurits]1.0 (2011-11-24)Initial release
[maurits]
Package: zest.social
IntroductionThis is yet another social bookmarking viewlet based onhttp://www.addthis.com/Why a new one and not for examplecollective.addthis?  Well,
probably just because it is so easy to generate the javascript with
the services we choose, and register this as a viewlet.  We did that
for our ownZest Softwaresite and a client wanted the same, but
then with s checkbox per page to turn it on or off.FeaturesThis gives you a viewlet near the bottom of the page with links to
share this on LinkedIn, Twitter or Google; you can share on some other
sites in a popup; plus a print button.Also, you get an extra boolean fieldshow_social_viewleton the
edit page (the Settings tab) of content types (usingarchetypes.schemaextender).  When this field is checked, the viewlet
is shown.  By default the field is not checked, so the viewlet is
not shown.The extra field and the viewlet are only available when
you have actually installed this Add-On in your Plone Site (this is
done using plone.browserlayer).  So when your Zope instance has more
than one Plone Site, the viewlet is only used in the site where you
install it.ConfigurationThere is no configuration in the UI.  If you want to override the
default value and fallback value for showing the viewlet you may want
to look atconfig.pyand do a monkey patch on the values there.If you want to change the links that are shown, you should just
override the viewlet template, which is probably easiest usingz3c.jbot.Compatibilityzest.socialhas been tested with Plone 3.3. and Plone 4.0, usingarchetypes.schemaextender1.6 and 2.0.3.Changelog1.3 (2012-09-12)Moved to github.
[maurits]1.2 (2010-10-19)Added MANIFEST.in file so the released package will contain.mofiles (at least when usingzest.releaserin combination withzest.pocompile).
[maurits]When context.show_social_viewlet does not work, try
context.getField(‘show_social_viewlet’).get(context)
as somehow the first only works when you have called getField once.
Tested with archetypes.schemaextender 1.6 and 2.0.3.
[maurits]Added config.py to ease overriding the
default value for the show_social_viewlet field (False)
and the fallback value for when the field does not exist for the
current object (False).
[maurits]1.1 (2010-10-18)Explicitly load the zcml of the archetypes.schemaextender package so
you do not need to add this yourself to your buildout config on
Plone 3.2 or earlier.
[maurits]1.0 (2010-10-18)Initial release.  [maurits]
Package: zest.specialpaste
ContentsIntroductionUse caseCompatibilityInstallationFuture ideasChangelog1.2 (2011-11-04)1.1 (2011-11-02)1.0 (2011-11-02)IntroductionWhen copying and pasting an object in Plone the workflow state of the
newly pasted object is set to the initial state.  Sometimes you want
to keep the original state.  This is whatzest.specialpastedoes.Use caseYou use Plone to store some information about clients in a folder.
You have created a standard folder with a few sub folders and several
documents, images and files that you use as a template for new
clients.  For new clients some of these objects should already be
published.  You have set this up correctly in the template or sample
folder.  You copy this folder, go to a new location and use the
‘Special paste’ action fromzest.specialpasteto paste the objects
and let the review state of the new objects be the same as their
originals.CompatibilityTested on Plone 4.0 and 4.1.  Currently it does not work on Plone 3.3;
that surprises me, so it might be fixable.InstallationAddzest.specialpasteto theeggsof your buildout (and to
thezcmltoo if you are on Plone 3.2 or earlier, but it does not
work there currently).  Rerun the buildout.Install Zest Special Paste in the Add-on Products control panel.
This adds a ‘Special paste’ action on objects and registers a
browser layer that makes our@@special-pastebrowser view available.Future ideasWe can add a form in between where you can specify what should be
special for the paste.  When selecting no options it should do the
same as the standard paste action.Allow keeping the original owner.Take over local roles.Make compatible with Plone 3.3 as well.Changelog1.2 (2011-11-04)Do less logging as this can be overly verbose or warn about things
that in practice occur for very normal reasons.
[maurits]Fix paste error when copying a folder that has a sub folder that has
content.
[maurits]1.1 (2011-11-02)Added MANIFEST.in file so .mo files are included when run with
zest.releaser.
[maurits]1.0 (2011-11-02)Initial release
Package: zetalytics-api
zetalytics-apiA straightforward python library for the Zetalytics Zonecruncher API.  For a list of all endpoints and query parameters, refer to theAPI documentation.Use of the Zetalytics API and zetalytics-api client requires a user token.  You can request onehere.InstallationTo install zetalytics-api, use Pypi via pip.pip install zetalytics-apiInitializationfrom zetalytics import Zetalytics

zeta = Zetalytics(token=[YOUR USER TOKEN])Examplesdomain2nsSearch passive dns by domain for NS recordsquery = {'q': 'example.com'}
zeta.domain2ns(**query)email_addressSearch for domains sharing a registration email address or SOA email from passivequery = {'q': 'johndoe@example.com', 'size': 10}
zeta.email_address(**query)Search passive dns by IP, CIDR, or Range (v6 compatible)query = {'q': '1.2.3.4', 'tsfield': 'first_seen', 'start': '2019-01-01', 'size': 100}
zeta.ip(**query)LicenseThis project is licensed under the GNU General Public License v3.0.
Package: zetamarkets-py
Zeta Python SDK 🐍InstallationInstall from PyPIpipinstallzetamarkets_pyInstall from SourceYou can add optional dependencies for running trading examples or docs using the--withflag.poetryinstall[--withexamples,docs]UsageSetting up a Solana walletPlease follow theSolana wallet creation docsto set up a wallet if you don't already have one locally.
By default the SDK will look for the wallet at~/.config/solana/id.jsonRunning the examplesRun the various code examples provided in theexamplesdirectory.DevelopmentFormatting and LintingWe useblackwithisortfor formatting andrufffor lintingpoetryformat
poetrylint
Package: zetane
The Zetane API is a Python library designed for robustly developing, testing, augmenting, and deploying computer vision Artificial Intelligence (AI) models. The API allows you to test adverse and out-of-domain conditions, offering a much-needed tool for AI developers, researchers, and data scientists who are eager to push the boundaries of their models, to comprehend their limitations, and to improve upon these performance thresholds.The Zetane API's core functionalities are derived from its distinctive data transformation capabilities. It is designed to take input images and then transform them in a multitude of ways, mimicking conditions that a model might encounter in real-world applications. The variety of transformations includes but is not limited to, geometric and color augmentations, noise injection, alterations in lighting and contrast, as well as various forms of image degradation and distortions. These transformations effectively broaden the scope of conditions under which AI models are tested, ensuring a model is not just learning from its data, but also generalizing well to unforeseen situations.Visit ourdocsfor more details on how to get started with the Zetane API.
Package: zetaSeq
ZetaSeq 0.0.8ZetaSeq is a versatile toolbox for processing sequencing data.ZetaSeq contains useful Python modules for handling your daily sequencing data.Most of the modules were initiated at 2010 when I started to mingle with high throughput sequencing.--
Zewei Songsongzewei@genomics.cnsongzewei@outlook.com
Package: zetastitcher
ZetaStitcher is a tool designed to stitch large volumetric images such as
those produced by Light-Sheet Fluorescence Microscopes.Key features:able to handle datasets as big as 1012voxelsmultichannel imagespowerful and simple Python API to query arbitrary regions within the fused
volumeHow to installOn Ubuntu 20.04 LTS, run these commands:sudo apt-get install python3-pip libgl1 libglib2.0-0
pip3 install zetastitcherDocker imageTo build a docker image with ZetaStitcher:make dockerYou can call the stitching commands using an ephemeral container like this:docker run -it -v`pwd`:/home --rm zetastitcher stitch-align -h
docker run -it -v`pwd`:/home --rm zetastitcher stitch-fuse -hDocumentationPlease read the documentation and follow the tutorial at this page:https://lens-biophotonics.github.io/ZetaStitcher/AcknowledgementsThis open source software code was developed in whole in the Human
Brain Project, funded from the European Union’s Horizon 2020 Framework
Programme for Research and Innovation under Specific Grant Agreements
No. 720270 and No. 785907 (Human Brain Project SGA1 and SGA2).Co-funded by the European Union
Package: zetch
ZetchIn-place, continuous templater.You can installZetchviapipfromPyPI:pip install zetchBinaries are available for:Linux:x86_64,aarch64,i686,armv7,ppc64le,s390x,musl-x86_64&musl-aarch64MacOS:x86_64,aarch64Windows:x86_64,aarch64,i686If your platform isn't supported,file an issue.UsagePlease see thedocumentationfor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Zetchis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.
Package: zetl
A simple ETL framework for Python, SQL and BAT files which uses a Postgres database for activity logging.
the zetl framework requires python and Postgres to run.1. Install PythonDownload and install python (https://www.python.org/downloads/) to your local computer.2. Install Postgreszetl v2+ uses sqlite backend instead of postgres, so installing postgres is not mandatory.Download and install postgres (https://www.postgresql.org/download/) to your local computer.  Remember the password.When you run zetl it will prompt you for database connection details.  At the end of prompting, it will ask if you want
to save the connection details (y/n).  If you select y, the details are saved in that folder and you aren't prompted again
unless the details fail on connect.Here are the defaults for postgtres:host: localhostport: 1532name: postgresschema: publicUsername: postgresPassword: <whatever_you_supplied>3.Install zetlJust install with pippip install zetlWherever you run zetl, it will look for a folder called zetl_scripts, where all your etl folders are stored.zetl_scriptsIn the tests folder on git hub you can see examples of etl folders, and etl scripts under the zetl_scripts folder.zetl_scripts\demo1
zetl_scripts\demo2
zetl_scripts\demo3
zetl_scripts\empty_log
zetl_scripts\view_log3. Run zetlpy -m zetl.runThis prompt for connection details to the Postgres database you just istalled.
Hit enter to accept the defaults and enter the password you entered during the database setup.4. Run zetl commandsTo run any zetl commands, go to the command line and change to the zetl directory.  eg. CD \zetlIf your setup is successful, when you run zetl.py with no parameters, it will connect and list ETL's available to run such as:demo1demo2demo3view_logempty_logUsageWhat is an ETL in the zetl framework ?An ETL exists in the form of a directory, under zetl_scripts, with files of a specific naming convention which are either python, windows bat, or sql.  The file naming convention is as follows: step_number.activity.extensionstep_numberis any integer unique in the immediate folderactivityis any alphanumeric name for the activity of the fileextensionmust be either py, bat or sqlFor example:zetl\zetl_scripts\demo1\1.hello.pyzetl\zetl_scripts\demo1\2.something.sqlzetl\zetl_scripts\demo1\3.hello.batcreate an ETLcreate a folder under zetl_scripts and add a file which follows the naming convention step_number.activity.extension
For example:1.anything.sql2.anythingelses.bat3.something.pyrun an ETLGo to the command line and change to the zetl directory.  eg. CD \zetl
pass the ETL as a parameter to zetlfor example:zetl demo1View the ETL LogEverytime an ETL runs, the z_log table is updated with the activity.  To see view the log, query the z_log table or run the ETL view_log as follows:zetl view_log
Package: zetops
ZetOpsZetOps是旨在提高网络运维自动化开发效率的一款工具包。名字的来源主要是之前做过的一个项目，叫做“织网”，你可以把z看做是“自”，它旨在解决网络自动化开发效率问题，垂直于网络自动化开发领域。你可以把Z看做是"织"，代表的是网络自动化人一针一线缝缝补补编织梦想的精神。你可以把Z看做是“中”,它的一大特色是应对国产化趋势之下国内网络设备适配的不足。你可以把Z看做是“N”的转置，代表的是网络人锐意创新的决心。然而，目前它还刚刚起步。RoadMap在这个最初的版本，我会聚焦在netmiko对国产化设备适配的不足，写一些国产化设备的驱动。对华为、山石、烽火进行了适配。后续将会分享一些自己写的国产化textfsm的模板，也会试图寻求网友的帮助。我会根据自己的理解，创建一个基于CLI的类似napalm的网络抽象层，不过这块可大可小，可能还需要我再思考一下。同时也会针对NetDevOps场景中的数据提取和配置备份做一些nornir的task模块
Package: zetsubou
ZetsubouFASTbuild project generator for the helplessHigh level wrapper around FASTbuild build system, written in python. Generates Visual Studio solution from simple yaml description. Supports Conan package manager. Provides commands for common operations, like setting up dev environment, building or clean (and many more in future).Currently only Windows and msvc are supported, but clang and Linux are planned.Installpip install zetsubouDevelopmentLocal install in editable modepython -m pip install -e .Deploy conan generatordeploy_generator.batorconan export zetsubou/zetsubou_conan_toolchain.py --user=bentou --channel=stableUsagezetsubou [COMMAND] [PROJECT] [OPTIONS...]zetsubou regen project.yml --verboseCommandsclean - removes all generated build folder and slninstall - setups virtual environment based on your build_tools.inigen - generates bff files, creates visual studio project and solutionregen - clean, install and gen in one commandbuild - build generated projectcreate - (WiP) emit new project from templateExample Projectproject.ymlproject: MyTest

config:
  verbose_build: false
  platforms:
    - 'platform/windows.yml'
  rules:
    - 'configurations/MsvcRules.yml'
  configurations:
    - 'configurations/Debug.yml'
    - 'configurations/Release.yml'
  config_string: '{platform}-{configuration}-{toolchain}'

conan:
  build_tools: build_tools.ini
  dependencies: dependencies.ini

targets:
  - 'my_app/my_app.yml'my_app.ymltarget: 'MyApp'

config:
  kind: EXECUTABLE

source:
  paths: 'src'
  patterns:
    - '*.cpp'Directory structuremy_project/├── build/              # generated│   ├── conan/          # conan dependencies install output│   ├── fbuild/         # generated fastbuild files (bff)│   ├── projects/       # generated vcxproj files│   ├── scripts/        # command scripts│   └── venv/           # virtual environment, with activate and deactivate scripts│├── my_app/│   ├── src/│   │   └── main.cpp│   └── my_app.yml│├── my_project.sln      # generated├── build_tools.ini├── dependencies.ini└── project.yml
Package: zettasql
ZettaSQLZettaSQL - the most popular Open Source SQL database management system, is developed,distributed, and supported byAhensCorporation.🧠🕋ZettaSQL is a database management system.ZettaSQL databases are relational.ZettaSQL software is Open Source.The ZettaSQL Database Server is very fast, reliable, scalable, and easy to use.ZettaSQL Server works in client/server or embedded systems.ZettaSQL commands are at all case sensitive. Everything is stored and retrived in small letters.InstallationOpen your command line (Command Prompt / Powershell / Bash / Terminal etc.)Run this commandpip install zettasql.It will install all the dependencies.UsageLearn more about ZettaSQL usagehere. All commands are to be run in command line.DocumentationLearn more about ZettaSQL documentationhere.IssuesYou are free to raise issues for bugshereContributionYou are free to contribute in this open source project.🎉🎉