Saravanan666/pypi-org huggingface dataset:
Package: zlig
CPython Extension Module Support for FlitThis is a PEP 517 build backend piggybacking (and hacking) Flit to support
building C extensions.Mostly a proof-of-concept, but could be further developed into something more
generally useful if Flit can better support hooking into the build system.FeaturesCan build C extensions.Does not require a user to pre-install a compiler.Very good caching; incremental compilation performs much better than
setuptools from my totally non-scientific observation.Produces a wheel with appropriate-ish tag for distribution.LimitationsSince Flit only supports one single top-level Python module/package, and
enforces the existence of that file/directory, this can only build extensions
as asubmoduleof a package right now.Since Flit's automatic metadata introspection (read version and description
from module) needs to import the top-level module/package, you either need
to jump through some hooks to make those work without the extension being
available, or only write metadata inpyproject.toml.Slower "cold" compilation time compared to setuptools and platform-provided
compilers.Does not allow custom compiler flags (possible to implement).Only handles C for now. I believe it's possible to support C++ (and Zig).Probably more, setuptools has so many years behind it and can therefore cover
many edge cases I've never dreamt of.CharacteristicsCompiles extension modules directly into the top-level Python package. This
makes it possible to run the extension "in-place" without installing, which
I find useful. But it makes the source tree a bit messy (you probably need
to rungit cleanonce in a while to keep things sane).How-ToThere's a minimal example inexamples/demothat has all the needed parts.[build-system]requires=["zlig"]build-backend="zlig"# ... Project metadata declaration.[tool.flit.sdist]# Exclude extension modules from sdist.exclude=["src/demo/*.so"][tool.zlig]# Declare extensions and its sources.extensions=[{name="demo.demo",sources=["src/**/*.c"]}]Add the following entries to your.gitignore:/build.zig
/zig-cache/
/zig-out/
# Flit builds things to /dist so add it too.
# Also *.pyd and *.so files but you should've already ignored them.DetailsAs a PEP 517 backend, this module simply bridges most of Flit's build API, but
re-implementsbuild_wheelto do some additional things:Compile extension modules before handing the package to Flit, which would add
all the files (including compiled extensions) into the wheel.When adding a file to the wheel, first check whether the file is an
extension's source and exclude it.Override Flit's logic deciding a wheel's file name to use a platform-specific
wheel tag instead.Compilation magic is provided byZig's build system. A working Zig compiler
is installed as aPEP 517 build dependency.
During compilation, the backend generates a build script (build.zig) frompyproject.toml, and call the Zig compiler to do the rest. After compilation,
those binaries are copied to the location Flit expects to fine modules.
Package: zlodziej-crawler
zlodziej-crawlerTable of ContentsAbout the ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageExtending ProjectAbout The ProjectSmall web-scraper for scraping and processing offers from websiteolx.pl.Built WithPoetryPydanticbs4Getting StartedPrerequisitesPoetryis used for managing project dependencies, you can install it by:pip install poetryInstallationClone the repogit clone https://gitlab.com/mwozniak11121/zlodziej-crawler-public.gitSpawn poetry shellpoetryshellInstall dependencies and packagepoetryinstallOr if you want to install package throughpippipinstallzlodziej-crawlerUsageThe only script made available issteal, which prompts forurlwith offer's category, e.g.olx.pl/nieruchomosci/mieszkania/wynajem/wroclaw/and then scraps, processes and saves found offers.
(Results are saved in dir:cwd / results)Example output forRentOfferlooks like this:Extending ProjectProject is meant to be easily extendable by adding new Pydantic models tozlodziej_crawler/models.py.BaseOfferserves purpose as a generic offer for all types of offers that are not specificly processed.RentOfferand its parent classBaseOfferlook like this:class BaseOffer(BaseModel):
    url: HttpUrl
    offer_name: str
    description: str
    id: PositiveInt
    time_offer_added: datetime
    views: PositiveInt
    location: str
    price: Union[PositiveInt, str]
    website: Optional[Website] = None
    unused_data: Optional[Dict] = None


class RentOffer(BaseOffer):
    rent: PositiveInt
    area: float

    number_of_rooms: Optional[str] = None
    offer_type: Optional[OfferType] = OfferType.UNKNOWN
    floor: Optional[str] = None
    building_type: Optional[BuildingType] = BuildingType.UNKNOWN
    furnished: Optional[bool] = None

    total_price: Optional[int] = None
    price_per_m: Optional[PositiveFloat] = None
    total_price_per_m: Optional[PositiveFloat] = NoneProject can be simply extended by adding matching classes based on other categories atolx.pl.Adding new OfferType needs:Parsing functions inzlodziej_crawler/olx/offers_extraction/NEW_OFFER.pyFactory function inOLXParserFactory(zlodziej_crawler/olx/parser_factory.py)Matching offer category url inOLXParserFactory.get_parser(zlodziej_crawler/olx/parser_factory.py)Currently any information found by scraper intitlebox-detailssection and not yet processed is saved asunused_data.
Package: zLOG
zLOGThis package provides a general logging facility that, at this point,
is just a small shim over Python’s logging module.  Therefore, unless
you need to support a legacy package from the Zope 2 world, you’re
probably better off using Python’s logging module.Changelog3.1 (2020-11-18)Add support for Python 3.6 up to 3.9.Drop support for Python 3.3 and 3.4.Flake8 the code.3.0 (2016-04-03)Add coverage testing.Add Python 3.3 - 3.5 compatibility.Declare currently-supported Python versions, and test them.Normalize package structure (README.rst,CHANGES.rst). Synthesize
package description from README.rst and CHANGES.rst.Use nose for testing instead of zope.testrunner and test
for 100% test coverage.2.12.0 (2012-08-30)Rely on refactored base class fromZConfigfor testing logging.
Package: zlogger
对logging进行二次封装, 操作更简单实例代码fromzloggerimportloggerlog=logger('test')log.info('测试')输出到文件fromzloggerimportloggerlog=logger('test',write_file=True)log.info('测试')指定输出文件的路径fromzloggerimportloggerlog=logger('test',write_file=True,file_dir='./')log.info('测试')单例可能有多个模块会操作日志模块, 但是你希望只用一个日志对象来避免一个进程产生多个日志文件fromzloggerimportlogger_singletonlog=logger_singleton('test')log.info('测试')参数说明参数名数据类型描述默认值namestr日志名write_streambool是否输出日志到流(终端)Truewrite_filebool是否输出日志到文件Falsefile_dirstr日志文件的目录.levelzlogger.LoggerLevel日志等级LoggerLevel.debugintervalint间隔多少天重新创建一个日志文件1backup_countint保留历史日志文件数量2append_pidbool是否在日志文件名后附加进程号Falselog_formatstring日志格式本项目仅供所有人学习交流使用, 禁止用于商业用途
Package: zlogin
Zerodha Login Automated; This package reads access token stored in dynamodb and provides KiteConnect / KiteTicker instances.This package can only be used in conjunction with a dynamodb access_store that keeps access key storedContextThis code is for a python package for automated login to Zerodha. The redirect URL is not handled here - Separate Repos with a container that runs as a lambda function saves the access token to dynamoDBCheck out zlogin-puppeteer (headless chrome based login to zerodha) [can be hosted for free in Google cloud functions]
and zerodha-dynamodb-save-accesstoken [AWS lambda container] to save access token to dynamodb from redirect url.How to productionalizeGet Zerodha (kite.trade) account for API based access to the platform.Save the API key as env variable ZAPICheckout zlogin-puppeteer repository that automates login process (using headless chrome)Check out the zerodha-dynamodb-save-accesstoken repository to set up a lambda function to handle Zerodha redirect url (it saves the access token in the save_access table in dynamodb)Install zlogin package from pypi, "pip install zlogin"importzloginaccess_token=zlogin.fetch_access_token()This repo is a sister repo with zerodha-dynamodb-save-accesstoken & zlogin-puppeteer tools which have a container code for lambda function that handles storage of access token to dynamodb and puppeteer based Google Cloud Function code to handle login process which redirects to the lambda.
Package: zlogo
zlogo自定义LOGO内容列表zlogo内容列表背景主要维护人员致谢参与贡献方式许可证背景想要设计个人logo，找了很多资料，发现logo.svg可以自定义logo图案，并且能够生成svg文件svglib可以转换svg到png写了这个脚本，方便大家使用主要维护人员zhujian -Initial work-zjykzj致谢bubkoo/logo.svgdeeplook/svglibGoogle Noto Fonts参与贡献方式欢迎任何人的参与！打开issue或提交合并请求。注意:GIT提交，请遵守Conventional Commits规范语义版本化，请遵守Semantic Versioning 2.0.0规范README编写，请遵守standard-readme规范许可证Apache License 2.0© 2020 zjykzj
Package: zlsender
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: zly-resource
功能特性返回大数据的资源接口安装为了简化安装过程，推荐使用 pip 进行安装pip install zly-resource-moudle使用示例#from aishow_model_app.apis.resource_api import TotalResource# TotalResource().xx_get(select_type=2,page=1,limit=20)项目打包使用示例python setup.py bdist_wheel
twine upload dist/*
Package: zly-resource-module
钉钉开放平台第三方 Python SDK。【阅读文档】。功能特性企业内部开发接入api应用服务商（ISV）接入api安装目前 dingtalk-sdk 支持的 Python 环境有 2.7, 3.4, 3.5, 3.6 和 pypy。dingtalk-sdk 消息加解密同时兼容 cryptography 和 PyCrypto, 优先使用 cryptography 库。
可先自行安装 cryptography 或者 PyCrypto 库:#cryptography python的一个加密方法# 安装 cryptography
pip install cryptography>=0.8.2
# 或者安装 PyCrypto
pip install pycrypto>=2.6.1为了简化安装过程，推荐使用 pip 进行安装pipinstalldingtalk-sdk# with cryptographypipinstalldingtalk-sdk[cryptography]# with pycryptopipinstalldingtalk-sdk[pycrypto]升级 dingtalk-sdk 到新版本:pip install -U dingtalk-sdk使用示例django 示例https://github.com/007gzs/dingtalk-django-example
Package: zm
===============================zabbix-cli-ent===============================Zabbix management command-line client* Free software: Apache license* Source: https://github.com/orviz/zabbix-cli-ent* Bugs: https://github.com/orviz/zabbix-cli-ent/issueszabbix-cli-ent allows to perform actions on a Zabbix serverthrough command line.Zabbix web interface usually is the most suitable way foradministration tasks, however there are times when youneed to modify settings non-interactively (scripts, ..) oreven certain actions easily done by command line.Getting Started---------------Install `zabbix-cli-ent` using `pip`, either by getting theversion uploaded in PyPi:# pip install zmor the one from the current repo:# git clone https://github.com/orviz/zabbix-cli-ent.git# cd zabbix-cli-ent && pip install .### Basic Usage# zm --helpwill list the current actions that can be performed.Depending on the subcommand it will have different options;rely on the `--help` option to learn about each one.**NOTE**: You can provide the connection details as options orvia a configuration file. Either way, the login, passwordand url must be provided in order to get a successfullyconnection.Use it programatically----------------------You can also use zabbix-cli-ent as a library to get data from aZabbix API.For that you first need to provide the credentials to be able toaccess any of the available functionality. As an example:.. code:: Pythonimport zm.triggerfrom oslo.config import cfgCONF = cfg.CONFCONF.username="foo"CONF.password="bar"CONF.url="https://example.com/zabbix"print zm.trigger.list(host="host.example.com",priority="DISASTER",omit_ack=True,)Extending Functionality-----------------------The code allows to easily extend the functionality. To doso:1. Create a new `Command` inherited class that willhandle the new functionality.* (`__init__()`) Here you will define the newaction's options.* (`run()`) The work to be done.2. Add the brand new class to:`commands.py` > `add_command_parsers()`There you go!
Package: zmathlib
ZmathlibAn module which helps to do math porblems such as add, substract, multliply, devide and mush more feactures on fucture.BadgesFeaturesYou can do math using our module easily.By using just add, sub, mul, div keywords.Easy to use it in your projects.InstallationInstall my-project with pippipinstallzmathplotlibUsage/ExamplesUsing two variablefromzmathlibimport*a=5b=6add=add(a,b)sub=sub(a,b)mul=mul(a,b)div=div(a,b)print(add)print(sub)print(mul)print(div)Using multiple variablefromzmathlibimport*a=5b=6c=7d=4add=add(a,b,c,d)sub=sub(a,b,c,d)mul=mul(a,b,c,d)div=div(a,b.c,d)print(add)print(sub)print(mul)print(div)RoadmapAdd more feactures.Make it a all in one math module.Authors@zandora-spaceSupportFor support, emailprofessor@zandora.spaceor follow our Instagram Page@zanx.codersFeedback/IssuesIf you have any feedback, please reach out to us atprofessor@zandora.spaceIf you have facing any issues, please report viaReport IssuesLicenseMIT
Package: zm-au
zm-auzm-auis a developer tool that provides an auto-updating API for programs. Note that this can be a bad idea for many reasons, so you should probably ask the user first.Sorry for prefixing the name with "zm", but I'm sure I'll have to do that again as I have no creative names for anything anymore.Usagezm-aucomes with two useful auto-updaters,PipAUandPipGitHubAU, and a class to base an auto-updater off of.Let's say you are creating a Python package calledskippitybopand you want it to notify the user when there is an update available on PyPI for it. Simply insert this code where you want the update check to happen.fromzm_auimportPipAUupdater=PipAU("skippitybop")updater.update(prompt=True)When the code is run, if there is an update available on PyPI, the user will be prompted to install it viapip. If the user chooses to install it, the program will exit on success. Or failure, for that matter.Take a guess whatprompt=Falsewould do.Let's say you are creating a Python package calledboppityskipon bigboi's GitHub repo and you want it to notify the user when there is an update available on GitHub releases for it, probably because the package is private and not on PyPI. Insert this code where you want the update check to happen.fromzm_auimportPipGitHubAUupdater=PipGitHubAU("boppityskip","bigboi/boppityskip",check_prerelease=True,dist="whl")updater.update(prompt=True)When the code is run, if there is an update available on GitHub releases (including prereleases) that is awhlfile, the user will be prompted to install it viapip. Again, if the user chooses to install it, the program will exit on success or failure.You can build your own AUs by making a class that inherits fromBaseAU. Override the following functions as such._get_current_version- Must return the current version of the package_get_latest_version- Must return the latest version of the package_download- Must download the package and return the filename of the downloaded file_update- Must install a package whose location is passed via the only parameter of this functionBe smart about how you use this!
Package: zmcat
ZMCatA simple command line tool to test ZMQ push/pull/pub/sub sockets. Based onhttps://github.com/lucasdicioccio/zmcatInstallationpip install zmcatUsagezmcat <socket_type> <uri> [--bind] [--key]socket_typeThe type of ZMQ socket you require (pub, sub, push, pull).uriThe URI to bind/connect to. For example,tcp://127.0.0.1:5555or ipc:///tmp/mysocket–bindBind to an interface instead of connecting to an existing socket. Relevant only for socket_type push and pull.–keyThe key to use for a pub/sub socket.Exampleszmcat pub tcp://*:5555
zmcat sub tcp://localhost:5555

zmcat pub tcp://*:5555 --key=mykey
zmcat sub tcp://localhost:5555 --key=mykey

zmcat push tcp://localhost:5555
zmcat pull tcp://*:5555 --bind

zmcat push tcp://*:5555 --bind
zmcat pull tcp://localhost:5555
Package: zmeiapi
ZmeiapiZmeiapi является набором программных средств для упрощения и автоматизации
построения файлов входных данных для кода Serpent.Содержит классы для создания материалов, пинов, ячеек, поверхностей
и задания основной информации для расчетов. Также содержит вспомогательные данные,
вспомогательные инструменты и классы для обработки данных.V 0.1.12НовоеДобавлен классutilities.Concentrations.SimpleMaterialConcentrationsДобавлен классutilities.Concentrations.UO2MaterialConcentrationДобавлен классutilities.Concentrations.MixTwoMaterialConcentrationsДобавлена информация по массовым долям нуклидов для некоторых материалов,
вся информация теперь хранится в файлеdata.materials_data.yml.
Загрузка данных из файла data.materials_data.yml проводится автоматически в модулеdata.Materials, доступ к данным по материалам осуществляется через переменнуюdata.Materials.materials_dataДобавлены классы для упрощения построения графиков:utilities.Graphs.SimpleGraph,utilities.Graphs.ManyLinesGraph,utilities.Graphs.BinsGraph,utilities.Graphs.AnimatedBarPlotV 0.1.13НовоеДобавлен классabstract_factories.PinCreators.FA3DPinsCreatorV 0.1.14НовоеДобавлен параметрlayers_namesдля классаabstract_factories.PinCreators.FA3DPinsCreatorV 0.1.15НовоеДобавлен классResдля представления объекта, содержащего часть выходных данных.Добавлен аттрибутreaders.SerpentOut.OutReader.uni_results, который представляет собой словарь,
где в качестве ключей используются названия universe, а значения представляют собой список изResобъектов с результатами расчетов для танной universe.V 0.1.16НовоеДобавлены новые стандартные материалыV 0.1.17НовоеНебольшие косметические измененияV 0.1.18НовоеДобавлен метод сохранения концентраций в файл yamlV 0.1.19НовоеНебольшие косметические измененияV 0.1.22НовоеДобавлено сохранение концентраций от выгорания в формате msgpack с использованием библиотеки сжатия bz2Добавлен метод чтения концентраций от выгоранияИзвестные багиНеправильно прописаны логические выражения в классеutilities.Graphs.ManyLinesGraph,
из-за чего при некоторых обстоятельствах на графике не отрисовывается планка погрешности
Package: zmesh
zmesh: Multi-Label Marching Cubes & Mesh SimplificationfromzmeshimportMesherlabels=...# some dense volumetric labeled imagemesher=Mesher((4,4,40))# anisotropy of image# initial marching cubes pass# close controls whether meshes touching# the image boundary are left open or closedmesher.mesh(labels,close=False)meshes=[]forobj_idinmesher.ids():meshes.append(mesher.get(obj_id,normals=False,# whether to calculate normals or not# tries to reduce triangles by this factor# 0 disables simplificationreduction_factor=100,# Max tolerable error in physical distance# note: if max_error is not set, the max error# will be set equivalent to one voxel along the# smallest dimension.max_error=8,# whether meshes should be centered in the voxel# on (0,0,0) [False] or (0.5,0.5,0.5) [True]voxel_centered=False,))mesher.erase(obj_id)# delete high res meshmesher.clear()# clear memory retained by meshermesh=meshes[0]mesh=mesher.simplify(mesh,# same as reduction_factor in getreduction_factor=100,# same as max_error in getmax_error=40,compute_normals=False,# whether to also compute face normals)# apply simplifier to a pre-existing mesh# compute normals without simplifyingmesh=mesher.compute_normals(mesh)mesh.verticesmesh.facesmesh.normalsmesh.triangles()# compute triangles from vertices and faces# Extremely common obj formatwithopen('iconic_doge.obj','wb')asf:f.write(mesh.to_obj())# Common binary formatwithopen('iconic_doge.ply','wb')asf:f.write(mesh.to_ply())# Neuroglancer Precomputed formatwithopen('10001001:0','wb')asf:f.write(mesh.to_precomputed())Note: As of the latest version,mesher.get_meshhas been deprecated in favor ofmesher.getwhich fixes a long standing bug where you needed to transpose your data in order to get a mesh in the correct orientation.InstallationIf binaries are not available for your system, ensure you have a C++ compiler installed.pipinstallzmeshPerformance Tuning & NotesThe mesher will consume about double memory in 64 bit mode if the size of the
object exceeds <1023, 1023, 511> on the x, y, or z axes. This is due to a limitation
of the 32-bit format.The mesher is ambidextrous, it can handle C or Fortran order arrays.The maximum vertex range supported.simplifyafter converting to voxel space is 220(appx. 1M) due to the packed 64-bit vertex format.Related Projectszi_lib- zmesh makes heavy use of Aleks' C++ library.Igneous- Visualization of connectomics data using cloud computing.CreditsThanks to Aleks Zlateski for creating and sharing this beautiful mesher.Later changes by Will Silversmith, Nico Kemnitz, and Jingpeng Wu.ReferencesW. Lorensen and H. Cline. "Marching Cubes: A High Resolution 3D Surface Construction Algorithm". pp 163-169. Computer Graphics, Volume 21, Number 4, July 1987. (link)M. Garland and P. Heckbert. "Surface simplification using quadric error metrics". SIGGRAPH '97: Proceedings of the 24th annual conference on Computer graphics and interactive techniques. Pages 209–216. August 1997. doi: 10.1145/258734.258849 (link)H. Hoppe. "New Quadric Metric for Simplifying Meshes with Appearance Attributes". IEEE Visualization 1999 Conference. pp. 59-66. doi: 10.1109/VISUAL.1999.809869 (link)
Package: zmfcli
zmfcliCommand line interface (cli) for ChangeMan ZMF through REST API. Usingfireto create the cli.UsageCredentialsCredentials and url can be exported toZMF_REST_*variables, so those
do not need to be privided with each command execution.exportZMF_REST_URL=http://httpbin.org:80/anything/zmfrestexportZMF_REST_USER=U000000exportZMF_REST_PWD=pa$$w0rd
zmfbuild"APP 000001""['src/SRE/APP00001.sre', 'src/SRB/APP00002.srb', 'src/SRB/APP00003.srb']"ExampleAudit a package$zmfaudit"APP 000001"CommandsGet help for a command$zmfpromote--helpCommandDescriptioncheckinPUT component/checkinbuildPUT component/buildscratchPUT component/scratchauditPUT package/auditpromotePUT package/promotefreezePUT package/freezerevertPUT package/revertsearch-packageGET package/searchcreate-packagePOST packageget-packageSearch or create if package does not existget-componentsGET componentget-load-componentsGET component/loadbrowse-componentGET component/browsePretty print resultSome results may return JSON data, this data can be pretty printed with Pythonzmfget-load-components"APP 000001""LST"|python-mjson.toolChangeMan ZMF DocumentsChangeMan ZMF 8.1 - Web Services Getting Started GuideChangeMan ZMF - REST Services Getting Started GuideChangeMan ZMF - User’s GuideChangeMan ZMF 8.1 - XML Services User’s Guide