Saravanan666/pypi-org huggingface dataset:
Package: zodbverify
OverviewVerify a ZODB by iterating and loading all records.
Problems are reported in detail.
A debugger is provided, together with decompilation information.zodbverify is available as a standalone script and as addon forplone.recipe.zope2instance.UsageScriptThe verification runs on a plain ZODB file.
The Zope application is not started.Run i.e.:bin/zodbverify -f var/filestorage/Data.fsUsage:zodbverify [-h] -f ZODBFILE [-D] [-o OID]

Verifies that all records in the database can be loaded.

optional arguments:
  -h, --help            show this help message and exit
  -f ZODBFILE, --zodbfile ZODBFILE
                        Path to file-storage
  -D, --debug           pause to debug broken pickles
  -o OID, --oid OID     oid to inspectplone.recipe.zope2instance integrationThe verification runs in the context of the initialized Zope application.Usage:./bin/instance zodbverify [-h] [-D] [-o OID]

Verifies that all records in the database can be loaded.

optional arguments:
  -h, --help         show this help message and exit
  -D, --debug        pause to debug broken pickles
  -o OID, --oid OID  oid to inspectInspecting a single oidThe output of zodbverify gives you a list of all problems and the oid that are affected.To inspect a single oid in detail you can pass one of these to zodbverify:./bin/instance zodbverify -o 0x2e929fThis will output the pickle and the error for that oid.By also adding the debug-switch you will get two pdb’s while the script runs:./bin/instance zodbverify -o 0x2e929f -D

2020-03-11 10:40:24,972 INFO    [Zope:45][MainThread] Ready to handle requests
The object is 'obj'
The Zope instance is 'app'
[4] > /Users/pbauer/workspace/dipf-intranet/src-mrd/zodbverify/src/zodbverify/verify_oid.py(52)verify_oid()
-> pickle, state = storage.load(oid)In the first pdb you have the object for the oid asobjand the zope instance asapp. Before the second pdb the pickle will be disassembled the same way as when using zodbverify to pause to debug broken pickles without passing a oid.Source CodeContributors please read the documentProcess for Plone core’s developmentSources are at thePlone code repository hosted at Github.Changelog1.2.0 (2022-07-06)New features:Improve debugging output: show all objects that reference a oid.
SeePhilip’s blog postfor more information.
See also discussion inpull request 8.
[pbauer] (#8)1.1.0 (2020-04-22)New features:Show the affected oids for each error.
Inspect a single oid.
The idea is to run zodbverify on the whole database and from the output copy one oid and run it again to further inspect that object.
[pbauer] (#6)Bug fixes:Minor packaging updates. (#1)1.0.2 (2019-08-08)Bug fixes:Open Data.fs in read only mode. (#2)1.0.1 (2019-05-09)Bug fixes:Fix project description. [jensens] (#1)1.0 (2019-05-09)New features:Initial effort.
Base code taken fromProducts.CMFPlone(created by @davisagli).
Enhanced and packaged for more general Zope use.
[dwt,jensens] (#1)
Package: zodiaco
ZodiacoCom este pacote voÃ§Ãª pode descobrir o signo de qualquer pessoa com base na sua data de nascimento.
MÃ©todos disponiveis:- getSigno()
- getCor()
- getNumeroSorte()InstalaÃ§Ã£oUse o gerenciador de instalaÃ§Ã£o de pacotespippara instalar zodiacopipinstallzodiacoExemplo de usofromzodiaco.signosimportgetSignossigno=getSignos.getSigno('1980-04-27')print(signo)print(getSignos.getCor(signo))print(getSignos.getNumeroSorte(signo))AuthorJulio Cesar Bueno de OliveiraLicenseMIT
Package: zodipy
ZodiPy simulates the zodiacal emission in intensity that an arbitrary solar system observer is predicted to see given an interplanetary dust model and a scanning strategy, either in the form of timestreams or HEALPix maps.HelpSee thedocumentationfor more information and examples on how to use ZodiPy for different applications.InstallationZodiPy is installed usingpip install zodipy.A simple exampleimportastropy.unitsasufromastropy.timeimportTimefromzodipyimportZodipymodel=Zodipy("dirbe")emission=model.get_emission_ang(25*u.micron,theta=[10,10.1,10.2]*u.deg,phi=[90,89,88]*u.deg,obs_time=Time("2022-01-01 12:00:00"),obs="earth",)print(emission)#> [15.35392831 15.35495051 15.35616009] MJy / srScientific paper and citationFor an overview of the ZodiPy model approach and other information regarding zodiacal emission and interplanetary dust modeling we refer to the scientific paper on ZodiPy:Cosmoglobe: Simulating zodiacal emission with ZodiPy (San et al. 2022).SeeCITATIONif you have used ZodiPy in your work and want to cite the software.FundingThis work has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No 776282 (COMPET-4; BeyondPlanck), 772253 (ERC; bits2cosmology) and 819478 (ERC; Cosmoglobe).
Package: zoe-analytics
Zoe provides a simple way to provision data analytics clusters and
workflows using container-based (Docker) virtualization. The guiding
principles are:ease of use: data scientists know about data and applications,
systems and resource constraints should be kept out of the wayease of administration: we have a strong background in systems and
network administration, so we put all effort possible to make Zoe
ease to install and maintainuse well-known technologies: we try hard not to reinvent the wheel,
we use Python, ZeroMQ, Docker and the Apache Web Servera clear roadmap: our short and long-term objectives should always be
clear and well definedopenness: the source code is open: clone, modify, discuss, test and
contribute, you are welcome!Resources:Documentation:http://zoe-analytics.readthedocs.org/Docker images:https://github.com/DistributedSystemsGroup/zoe-docker-imagesZoe is licensed under the terms of the Apache 2.0 license.
Package: zoe-ci
zoe_ci Job frameworkIf you are new to zoe_ci, look at the architecture docs there:misc/ZoeArch.mdThis repository is the client part of the zoe_ci architecture that executes work items on target machines.It consists of:a python library that implements the base primitives:zoe_ciand severalexamplesConventionsAll jobs should be in files named*.job.py. This way the version control systems can trigger jobs correctly.Only one job per fileTry to keep complexity down as much as possible, increasing maintainability of the overall systemTry to write the code in a cross-platform matter if simple enough (linux/windows/console)Installationpip install zoeto run:python -m zoe_ciDevelopment: start / testingRun the solution in vscode with F5, see.vscode/launch.jsonManual testingjust execute any .job.py file in python:examples\\01-simple-svn-checkout.job.py
Package: zoegas
Old Norse Dictionary ZoegaZoëga's A Concise Dictionary of Old Icelandic parserWith thereader.pymodule, you can:search a word with an edit distance below a given threshold,extract the POS tags in dictionary entries,search for exact entry and approximate entry.However POS tag extractor is not very efficient. More special cases need to be handled.TODO list:look up a word in dictionarysearch all words in dictionary which are at most at a given edit distance with the query wordfor a given dictionary entry, give all its inflected forms (partially done),handle more dictionary entry,process all entries so that we would get virtually all the Old Norse words,for each form, we can associate lemmas with a proposed POS tag.Elaboration of dataData come fromhttps://github.com/GreekFellows/lesser-dannattandhttp://norroen.info/dct/zoegaby Tim Ermolaev.
Thenutils.first_step()is launched. Files are modified in order to ensure
XML syntax consistency, finallyutils.second_step()is launched.
Package: zoek
zoek - find files and directorieszoek (Dutch for "search") is a Python library and command-line utility aiming to duplicate and extend the functionality of the find command-line utility.Installationpipcan be used to install zoek:pipinstallzoekHowever, we recommend to install zoek usingpipx:pipxinstallzoekUsagezoek can be used as a command-line utility as follows:zoek<dir>zoek currently supports the following flags:--depthor-dto indicate the depth of directories and files to return (default: 1):zoek<dir>-d<int>--startswithor-sto return files and directories starting with the provided string:zoek<dir>-s<str>--containsor-cto return files and directories that contain the provided string:zoek<dir>-c<str>--minsizeor-mto filter output on size, a positive int returns files equal or larger, a negative int returns files smaller than input:zoek<dir>-m<int>--datecreatedor-dcto filter output on time created, a positive int returns files created more than int minutes ago, a negative int return files less than int minutes ago:zoek<dir>-dc<int>--datemodifiedor-dmsimilar to--datecreated, but then for filtering date modified:zoek<dir>-dc<int>As filters stack, multiple flags can be used simultaneously.ContributingPlease refer toCONTRIBUTING.mdLicenseBSD-3
Package: zoetropy
zoetropyA Wagtail app for storing video clips based on media-catalogue. Please bear with us while we prepare more detailed documentation.Compatibilityzoetropy' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallzoetropyAddzoetropyto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'zoetropy'# ...]
Package: zof
zofis a Python framework for creating asyncio-based applications that control
the network using the OpenFlow protocol.Supported FeaturesOpenFlow versions 1.0 - 1.4 (with partial support for 1.5)TLS connectionsLimited packet parsing and generation: ARP, LLDP, IPv4, IPv6, UDP, TCP, ICMPv4, ICMPv6App’s can simulate switches; Supports both sides of the OpenFlow protocolRequirementsPython 3.5.1 or lateroftr command line toolInstall - Linux# Install /usr/bin/oftr dependency.sudoadd-apt-repositoryppa:byllyfish/oftrsudoapt-getupdatesudoapt-getinstalloftr# Create virtual environment and install latest zof.python3.5-mvenvmyenvsourcemyenv/bin/activatepipinstallzofThe oftr command line tool can also be installed on aRaspberry PI or using HomeBrew.DemosTo run the layer2 controller demo:python -m zof.demo.layer2Architecturezofuses a separateoftrprocess to terminate OpenFlow connections and translate OpenFlow messages to JSON.Architecture: The oftr process translates OpenFlow to JSON.You construct OpenFlow messages via YAML strings or Python dictionaries. Incoming OpenFlow messages are generic Python objects.  Special OpenFlow constants such as ‘NO_BUFFER’ appear as strings.type:FLOW_MODmsg:command:ADDmatch:-field:IN_PORTvalue:1-field:ETH_DSTvalue:00:00:00:00:00:01instructions:-instruction:APPLY_ACTIONSactions:-action:OUTPUTport_no:2The basic building block of zof is anapp. Anappis associated with various message and event handlers.
You create an app object using thezof.Applicationclass. Then, you associate handlers using the app’smessagedecorator.importzofAPP=zof.Application('app_name_here')@APP.message('packet_in')defpacket_in(event):APP.logger.info('packet_in message%r',event)@APP.message(any)defother(event):APP.logger.info('other message%r',event)if__name__=='__main__':zof.run()Place the above text in a file nameddemo.pyand run it withpython demo.py. This app handles OpenFlow ‘PACKET_IN’ messages using the packet_in function. All other messages are dispatched to theotherfunction. The app does not do anything; it just logs events.To compose the demo.py program with the layer2 demo:python demo.py --x-modules=zof.demo.layer2
Package: zogutils
ZOG UtilsUtilities to use in my base-api project template.https://github.com/tienhm0202/base-fastapi/Why ZOG? Because I can't named it asutilsonly, so I have to add a prefix.
ZOG sounds likejokeand looks likezoo. I found that funny enough to use.Usage$pipinstallzogutilsTo generate short unique id stringfromzogutilsimportsecretsecret.unique_id(8,"ID_")# return: ID_a7uFg9k0To shorten package name like Java's Logbackfromzogutilsimportpackage_namepackage_name.shorten("company.scope.modules.Function",9)# return: (something like) c.s.m.Function - depends on max lengthTo init some middlewaresfromzogutilsimportmiddlewaresfromyour.appimportsettings,fastapi_appmiddlewares.init_app(fastapi_app,settings)Configs:# Sentry
SENTRY_DSN: Optional[HttpUrl] = None
SENTRY_INCLUDE: Optional[List[str]] = ["src"]
SENTRY_SAMPLE_RATE: Optional[float] = 0.5

# CSRF
SECURITY_CSRF: bool = False

# Rate limit
RATE_LIMIT: int = 100
RATE_LIMIT_TIME_SPAN: int = 30
RATE_LIMIT_BLOCK_DURATION: int = 300

# Prometheus
PROMETHEUS_ENABLE: bool = True
PROMETHEUS_PATH: str = "/metrics/"

# Cors
BACKEND_CORS_ORIGINS: List[AnyHttpUrl] = []
Package: zoho-client-django
zoho-client-djangoA modest Zoho CRM API client which will do the oAuth2 for you.Usagefromzoho_client.zohoimportZohoClientclient=ZohoClient()# GET all Sales_Ordersres=client.make_request(api_endpoint="Sales_Orders")# res is an instance of requests.Responseforsales_orderinres.json()['data']:print(f"sales order #{sales_order['id']}")# find the first recordsales_order_id=res.json()['data'][0]['id']# update the sales order's subjectpayload={'data':[{'Subject':'CHANGED'}]}# the make_request accpet any kwargs which the requests.request() method accpetsres=client.make_request(method='PUT',api_endpoint=f"Sales_Orders/{sales_order_id}",json=payload)print(res.json()['data'][0]['status'])# => success# search for a record. the params are automatically encodedres=client.make_request("GET","Accounts/search",params={"criteria":"(Account_Name:equals:Guy Moller)"})print(f"found{resp.json()['info']['count']}records")# create a recordaccount_data={'Account_Name':'John Doe','Email':'joe@example.com'}res=client.make_request(method='POST',api_endpoint='Accounts',json={'data':[account_data]})print(res.json()['data'][0]['details']['id'])# => 5599334000006242002SetupENVthe package expects to have it's configuration in the settings.py:# read it from .envZOHO_CLIENT_ID=env("ZOHO_CLIENT_ID")ZOHO_CLIENT_SECRET=env("ZOHO_CLIENT_SECRET")ZOHO_API_VERSION="v2.1"# sandboxZOHO_BASE_URL="https://crmsandbox.zoho.com"# production# ZOHO_BASE_URL = "https://zohoapis.com"and naturally, don't forget to include the app in your INSALLED_APS:INSTALLED_APPS=[..."zoho_client",]Initilization of the client (one off)gotohttps://api-console.zoho.com/:copy the client id and secret and save them in your django settings. the recommended way would be to save them as ENV variables.generate an authorization codescope:
ZohoCRM.modules.ALL,ZohoCRM.settings.ALL,ZohoCRM.users.ALL,ZohoCRM.bulk.ALL,ZohoCRM.notifications.ALLchoose either production or sandboxpress generate and copy the code and run this from the django console:go to django admin to zoho_client/zoho_token and press the regenerate zoho oauth tokenspaste the authorization code you have copied beforeyou are good to go!Programmatically:fromzoho_client.zohoimportZohoClient# the code you have just copiedcode="1000.12c557408797e20c8432216dca0bbb5f.f1896d4f9e2329136806637798859a99"ZohoClient().fetch_tokens(code)# -> '1000.03b32b6490d8573e242664710bbc4f2c.e009198b6ab4b89013485657409e4913'
Package: zohocrmapi
Zoho CRM APIThis API is for people who are having trouble with the official Zoho API.Supports Zoho API v2For full documentation visitzoho-crm-api.readthedocs.io.QuickstartInstall:$ pip install zohocrmapiGet a Client ID, Client Secret, and Grant Token from Zoho, then create aZohoCRMRestClientobject and generate an access token:fromzohocrmimportZohoCRMRestClientclient_id='<paste your Zoho client id>'client_secret='<paste your Zoho client secret>'redirect_uri='<paste your Redirect URL>'grant_token='<paste your newly created token>'zoho_client=ZohoCRMRestClient(client_id,client_secret,redirect_uri)zoho_client.generate_access_token(grant_token)Download a Record from the API, for example a Contact:fromzohocrmimportZohoCRMContactcontact_id=1234023423424contact=ZohoCRMContact.fetch(zoho_client,contact_id)Create a new record:contact=ZohoCRMContact(zoho_client)contact.Last_Name="John"Update or save a Record:# no id? insertcontact.save()# or contact.insert()# id = <int>? updatecontact.id=12232423423contact.save()# or contact.update()Delete a Record:# delete loaded recordcontact.delete()# delete non-loaded record from IDZohoCRMContact.delete_id(zoho_client,contact_id)
Package: zoho-oauth2
Zoho API - OAuth 2.0Uses OAuth 2.0 for generating access_tokens for using Zoho APIs.InstallationInstall the package using pip.pip install zoho-oauth2Generate required credentialsCLIENT_IDCLIENT_SECRETGenerate the two values fromhttps://api-console.zoho.com/.
Add a self client, and copy the CLIENT_ID and CLIENT_SECRET as seen in the example below.redirect_uriAdd the redirect uri of your instance.scopeYou can find the list of scopes in the api documentation of the products you wish to use the API for.regionSelect the region if required. Chooseshttps://accounts.zoho.comby default. Following regions are supported as per Zoho Documentation.EU :https://accounts.zoho.euCN :https://accounts.zoho.com.cnIN :https://accounts.zoho.inAPI DocumentationThe access tokens have only been tested with Manage Engine Service Desk instance in a demo environment, although it should work with most Zoho products.Learn more about the APIs from the link below.ZOHO People API DocumentationManageEngine ServiceDesk Plus Cloud API DocumentationAvailable methods to use.To generate the access token for making the API Requests.ZohoAPITokens(client_id=CLIENT_ID,#Requiredclient_secret=CLIENT_SECRET,#Requiredredirect_uri=REDIRECT_URI,#Requiredscope=SCOPES(asstring,eachscopeseparatedbycomma),#Requiredregion=REGION#Optional)To revoke the refresh token. The method will revoke the access token and proceed with deleting the token.pickle file.revokeRefreshToken()Example Usagefrom zoho_oauth2 import ZohoAPITokens

if __name__ == '__main__':
    test = ZohoAPITokens(
        client_id=CLIENT_ID,
        client_secret=CLIENT_SECRET,
        redirect_uri=REDIRECT_URI,
        scope=SCOPES(as string, each scope separated by comma)
    )
Package: zoid
Zoidis a set of command line tools for easy hosting of one or moreProject Zomboidservers.FeaturesRuns on Windows and Linux (tested) and possible Mac but not tested for nowMakes it realy easy to get started a new server even for unexperienced usersMultiple servers can be managed with one set of command line toolsInheritable configuration system makes it easy to host multiple servers with same config settingsWritten in pure Python so all features can be accessed thru a Python package[in dev.] API interface / Web-PanelGet startedFor bug reports or feature proposals please use the issue tracker on this site.The documentation can be found here:http://zoid.readthedocs.org/en/latest/LicenseBSD, for more info see the LICENSE fileCreditsAndreas Klauer for his SourceRcon scriptIndie Stone for the great game
Package: zoil
ZOilZOil is a python library used to generate random Oil and Gas data. Most Oil and Gas data is either propreitary or costly to aquire. ZOil lets you quickly generate an unlimited amount of production data that can be used to for testing, anonymization and much more. ZOil was inspired by theFakerlibrary.InstallationpipinstallzoilUsageZOil generates random production data using theget_production_datashown below with default keyword arguementszoil.get_production_data(start_date=datetime(year=1950,month=1,day=1),end_date=datetime.now(),qio_min=100,qio_max=2500,qig_min=500,qig_max=5000,qiw_min=100,qiw_max=2500)"""get_production_data generates a dictionary containing random production data.:param granularity: 'monthly' | 'daily' Granularity of data:param start_date: The start date of the production history:param end_date: The end date of the production history:param qio_min: The minimum initial oil production rate:param qio_max: The maximum initial oil production rate:param qig_min: The minimum initial gas production rate:param qig_max: The maximum initial gas production rate:param qiw_min: The minimum initial water production rate:param qiw_max: The maximum initial water production rate:return: A dictionary containing random production data"""See the example below to visualize a random wells production decline curve usingpandasandmatplotlibfromzoilimportget_production_dataimportmatplotlib.pyplotaspltimportpandasaspdproduction_data=get_production_data()df=pd.DataFrame(production_data)df.plot(x='date',y=['oil','gas','water'],color=['green','red','blue'],title='Production History for a Random Well',xlabel='Date',ylabel='Production')plt.show()Each time theget_production_datafunction is called a new dictionary of production data will be generated. The occasional halts in production are to represent workovers where the well is shut-in for repair for sometime.To DoMake data more chaotic and realisticCreate more keyword arguementsCreate new functions for other types of data (drilling, logging, etc.)ContributeFor any bugs, issues, suggestions please create an Issue or a Pull Request.LicenseZOil is released under the MIT License. See the bundledLICENSEfile for details.
Package: zoinks
ZoinksZoinks (Zoteroinformation quicksearch) is a command-line utility that returns the values of selected fields of a bibliographic record given a Zotero select link, an item key, or even the path to a file attachment in your Zotero database.Table of contentsIntroductionInstallationUsageKnown issues and limitationsGetting helpContributingLicenseAcknowledgmentsIntroduction"Shaggy has a characteristic speech pattern, marked by his frequent use of the filler word "like" and, when startled, his exclamations of "Zoinks!" —from the Wikipedia entry forShaggy Rogers, retrieved on 2020-12-15. Anarchived copyis available in the Wayback Machine.When usingZoteroin scripts and other software, you may need a way to retrieve information about bibliographic entries without searching for them in Zotero itself.Zoinks(a loose acronym forZoteroinformation quic**ksearch) is a program that lets you do this from the command line.Zoinks is a companion toZowie, a command-line application that writes Zotero select links into PDF files to make them accessible outside of Zotero.Installation[... forthcoming ...]Usage[... forthcoming ...]Known issues and limitations[... forthcoming ...]Getting helpIf you find an issue, please submit it inthe GitHub issue trackerfor this repository.ContributingI would be happy to receive your help and participation if you are interested.  Everyone is asked to read and respect thecode of conductwhen participating in this project.  Development generally takes place on thedevelopmentbranch.LicenseThis software is Copyright (C) 2022–2023, by Michael Hucka and the California Institute of Technology (Pasadena, California, USA).  This software is freely distributed under a 3-clause BSD type license.  Please see theLICENSEfile for more information.AcknowledgmentsThis work is a personal project developed by the author, using computing facilities and other resources of theCalifornia Institute of Technology Library.Thevector artworkof a surprised person, used as the icon for this repository, was created byAdrien Coquetfrom the Noun Project.  It is licensed under the Creative CommonsCC-BY 3.0license.