Saravanan666/pypi-org huggingface dataset:
Package: zformat
# z-formatAn opinionated CLI formatter for JavaScript and CSS (beautify or minimize).If the file is being beautified, the file's contents are replaced with the newformatting. If the file is being minimized, we create a new file with `.min`before the normal file extensions (e.g. `.min.js` or `.min.css`).## Usage```shusage: format.py [-h] [-m] pathAn opinionated CLI formatter for JavaScript and CSS (beautify or minimize).positional arguments:path          file's path to formatoptional arguments:-h, --help    show this help message and exit-m, --minify  minimize the file's content instead of beautifying```## Install```shpip install z-format```## DependenciesThis is a simple wrapper for several libraries which it installs by default:- jsbeautifier - JavaScript beautification- jsmin - JavaScript minification- cssformatter - CSS beautification and minification## LicenseMIT LicenseCopyright (c) 2017 Joshua S. ZieglerPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
Package: z-format
# z-formatAn opinionated CLI formatter for JavaScript and CSS (beautify or minimize).If the file is being beautified, the file's contents are replaced with the newformatting. If the file is being minimized, we create a new file with `.min`before the normal file extensions (e.g. `.min.js` or `.min.css`).## Usage```shusage: format.py [-h] [-m] pathAn opinionated CLI formatter for JavaScript and CSS (beautify or minimize).positional arguments:path          file's path to formatoptional arguments:-h, --help    show this help message and exit-m, --minify  minimize the file's content instead of beautifying```## Install```shpip install z-format```## DependenciesThis is a simple wrapper for several libraries which it installs by default:- jsbeautifier - JavaScript beautification- jsmin - JavaScript minification- cssformatter - CSS beautification and minification## LicenseMIT LicenseCopyright (c) 2017 Joshua S. ZieglerPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
Package: zfpc
zfpc: zfp container formatAn unofficial project unaffiliated with thezfpproject.An exerimental container format forzfpencoded vector fields. As described in thezfp documentation, datasets such as vector fields are not optimally compressed within a single zfp stream. This is due to the uncorrelated X and Y components. Compress the X and Y components as separatezfparrays and you will yield a higher compression ratio.However, this method of separate files is cumbersome, must be maintained per a project, and is not compatible with existing data viewers (such as Neuroglancer) that expect to download a single file per an image tile.zfpcprovides a means for splitting up a 1-4D array based on their (user specified) uncorrelated dimensions, compressing those slices into separatezfpstreams, and encoding them into a single file. This file can then be decompressed back into its original form seamlessly usingzfpc. In the future, it may be possible to automatically determine which dimensions are uncorrelated using statistical tests.In fixed rate mode, it should still be possible to perform random access though this feature is not available yet.importzfpc# example shape: (1202, 1240, 64, 2)vector_field=np.array(...)# dtype must be float or int, 32 or 64-bit# For data that are arranged as a Z stack of planar XY vectors# e.g. arr[x,y,z,channel] mostly smoothly vary in the XY plane# per a channel. Therefore, we set correlated_dims as# [True,True,False,False] as the z and channel dimensions# do not smoothly vary to obtain optimal compression.## tolerance, rate, and precision are supported modes.# By default, lossless compression is used.correlated_dims=[True,True,False,False]binary=zfpc.compress(vector_field,tolerance=0.01,correlated_dims=correlated_dims,)recovered_img=zfpc.decompress(binary)Container Formatheader,index,streamsHeaderThe header is 15 bytes long in the following format written in little endian.FieldTypeDescriptionmagicchar[4]"zfpc" magic number for file format.format versionuint8Always version 0 (for now).dtype,mode,orderuint8bits 1-3: zfp data type; bits 4-6: zfp mode; bit 7: unused; bit 8: true indicates c order (bits: DDDMMMUC)nxuint32Size of x axis.nyuint32Size of y axis.nzuint32Size of z axis.nwuint32Number of channels.correlated dimsuint8Bottom 4 bits are a bitfield with 1 indicating correlated, 0 uncorrelated. Top 4 bits unused. (xyzw0000)IndexAll entries in the index are uint64 (8 bytes) little endian.Stream offset followed by the size of each stream. The number of streams is calculated by the product of all the uncorrelated dimension sizes.The stream offset is not a strictly necessary element, but will allow the format to be changed while allowing older decompressors to still function.StreamsAll zfp streams are concatenated together in Fortran order. The streams are written with a full header so that they can be decompressed independently.In the future, it might make sense to get savings by condensing them into a single header and writing headerless streams. However, writing full headers presents the possibility of using different compression settings for each stream which could pay off for different components.
Package: zfs-autobackup
ZFS autobackupIntroductionZFS-autobackup tries to be the most reliable and easiest to use tool, while having all the features.You can either use it as abackuptool,replicationtool orsnapshottool.You can select what to backup by setting a customZFS property. This makes it easy to add/remove specific datasets, or just backup your whole pool.Other settings are just specified on the commandline: Simply setup and test your zfs-autobackup command and  fix all the issues you might encounter. When you're done you can just copy/paste your command to a cron or script.Since it's using ZFS commands, you can see what it's actually doing by specifying--debug. This also helps a lot if you run into some strange problem or errors. You can just copy-paste the command that fails and play around with it on the commandline. (something I missed in other tools)An important feature that's missing from other tools is a reliable--testoption: This allows you to see what zfs-autobackup will do and tune your parameters. It will do everything, except make changes to your system.FeaturesWorks across operating systems: Tested withLinux,FreeBSD/FreeNASandSmartOS.Low learning curve: no complex daemons or services, no additional software or networking needed.Plays nicely with existing replication systems. (Like Proxmox HA)Automatically selects filesystems to backup by looking at a simple ZFS property.Creates consistent snapshots. (takes all snapshots at once, atomicly.)Multiple backups modes:Backup local data on the same server."push" local data to a backup-server via SSH."pull" remote data from a server via SSH and backup it locally."pull+push": Zero trust between source and target.Can be scheduled via simple cronjob or run directly from commandline.Also supports complex backup geometries.ZFS encryption support: Can decrypt / encrypt or even re-encrypt datasets during transfer.Supports sending with compression. (Using pigz, zstd etc)IO buffering to speed up transfer.Bandwidth rate limiting.Multiple backups from and to the same datasets are no problem.Resillient to errors.Ability to manually 'finish' failed backups to see whats going on.Easy to debug and has a test-mode. Actual unix commands are printed.Uses progressive thinning for older snapshots.Uses zfs-holds on important snapshots to prevent accidental deletion.Automatic resuming of failed transfers.Easy migration from other zfs backup systems to zfs-autobackup.Gracefully handles datasets that no longer exist on source.Complete and clean logging.All code is regression tested against actual ZFS environments.Easy installation:Just install zfs-autobackup via pip.Only needs to be installed on one side.Written in python and uses zfs-commands, no special 3rd party dependency's or compiled libraries needed.No annoying config files or properties.Getting startedPlease look at our wiki toGet started.Sponsor listThis project was sponsorred by:JetBrains (Provided me with a license for their whole professional product line,https://www.jetbrains.com/pycharm/)DatuX
Package: zf-school-sdk
新版正方系统 Python SDK。(支持自动识别、处理滑块验证码与常规验证码，如果觉得还不错,给个小星星趴~⭐)在线文档测试环境Python == 3.8默认验证码识别方式: CPUUsage$pipinstallschool-sdk# or$pipinstallzf-school-sdkfromschool_sdkimportSchoolClient# 先实例化一个学校，再实例化用户school=SchoolClient("172.16.254.1")user:UserClient=school.user_login("2018xxxxx","xxxxxxxx")course=user.get_schedule(year=2020,term=2)print(course)使用示例参见examplesApi FunctionApiDescriptionArgumentuser_login登陆函数account, passwordget_schedule课表查询year, termget_score成绩查询year, termget_info获取个人信息Nonerefresh_info刷新个人信息Nonecheck_session检查session并其失效后重登录NoneSchool-SDK OptionsOptionDefaultDescriptionhost不存在默认值教务系统地址(必填)port80端口号sslFalse教务系统是否使用httpsnameNone学校名称exist_verifyFalse是否存在验证码captcha_typecaptcha验证码类型(常规 或 滑块)retry10登录重试次数lan_hostNone内网地址（暂不可用）lan_port80内网地址端口（暂不可用）timeout10全局请求延时url_endpointsNone地址配置相关项目新版正方教务系统:https://github.com/Farmer-chong/new-school-sdk旧版正方教务系统:https://github.com/dairoot/school-apiSDK的Flask扩展:https://github.com/Farmer-chong/flask-school
Package: zfsexporter-tspspi
Simple Python ZFS exporter for PrometheusThis is a simple ZFS exporter as provider for thePrometheus  time series database
and monitoring systemwritten in Python. It uses
theprometheus-clientPython
package to do the main work of running the webservice and managing the gauges.
It's just a wrapper that periodically calls thezfs listandzpool statuscommands to gather information about the filesystems and the pools which is then
provided on the specified TCP port where it's collected by Prometheus at the
specified scrape interval. Note that this exporter does only scrape the filesystem
properties at a configurable interval instead at the query time of the time
series database itself.Since this exporter scrapes the output of the CLI tools it may break with
any software update and might only work with particular versions of those
tools. It has been tested on:FreeBSD 11.2FreeBSD 12.2Exported metricsFor each ZFS filesystem (filesystemused as label):Used bytes (zfs_used)Available bytes (zfs_avail)Referred bytes (zfs_referred)For each pool (poolused as label):Resilvered percentage (zpoolResilvered)Resilvered bytes (zpoolResilveredByte)Scrub scanned bytes (zpoolScrubScanned)Scrub datarate (zpool_scrub_rate)Scrub scanned percentage (zpool_scrub_scanned_pct)For eachvdev(vdevused as label):Read errors (zpoolErrorRead)Write errors (zpoolErrorWrite)Checksum errors (zpoolErrorChecksum)Operations read (zpool_opread)Operations write (zpool_opwrite)Bandwidth read (zpool_bwread)Bandwidth write (zpool_bwwrite)For each non terminalvdev(vdevused as label):Allocated capacity (zpool_capacityallocated)Free capacity (zpool_capacityfree)InstallationThe package can either be installed from PyPIpip install zfsexporter-tspspior form a package downloaded directly from thetar.gzorwhlfrom
thereleases:pip install zfsexporter-tspspi.tar.gzUsageusage: zfsexporter [-h] [-f] [--uid UID] [--gid GID] [--chroot CHROOT] [--pidfile PIDFILE] [--loglevel LOGLEVEL] [--logfile LOGFILE] [--port PORT] [--interval INTERVAL]

ZFS exporter daemon

optional arguments:
  -h, --help           show this help message and exit
  -f, --foreground     Do not daemonize - stay in foreground and dump debug information to the terminal
  --uid UID            User ID to impersonate when launching as root
  --gid GID            Group ID to impersonate when launching as root
  --chroot CHROOT      Chroot directory that should be switched into
  --pidfile PIDFILE    PID file to keep only one daemon instance running
  --loglevel LOGLEVEL  Loglevel to use (debug, info, warning, error, critical). Default: error
  --logfile LOGFILE    Logfile that should be used as target for log messages
  --port PORT          Port to listen on
  --interval INTERVAL  Interval in seconds in which data is gathered
Package: zfspace
zfspaceConsole tool to find occupied pool space in ZFS on Linux.
The tool uses pure python3 with shell commands to collect useful information from ZFS
and show it in convenient way wit recommendations how to free some space.IntroductionZFS is a non-trivial LVS filesystem with snapshots, reservations, deduplication, filesystems hierarchy and so on.
Common tools, such asdforlscan't provide relevant information when youneed to free some space.
There is anexplanatory articleabout this.Snapshots USED space is another puzzle. ZFS only shows space freed by destroying individual snapshot or space
occupied by all filesystem snapshots. If you add up all USED by the snapshots space, you willnotget total occupied
space because there is some space occupied by snapshot combinations. Most people do not comprehend this.zfspace tries to analyze space usage and describe it in a human way with recommendations on the things you can do
to free some space. The snapshot analysis is similar tothis tool.Installationpip3 install zfspacezfspace doesn't require root priviledges as it is installed in ~/.local/bin/UsageUsage:zfspace [-h] [-V] [-f FILTER] dataset_nameRunzfspace -hto get more helpExample:zfspace mypool/root/Compatibilityzfspace is pure python module installed by pip, so it might work on any Linux with Python3 and pip package manager.
But zfspace has only been tested on Ubuntu 18.04 and Debian 10.DevelopmentYou must obey PEP8 formatting rules written in .flake8You must create new versions using bump2version. It simultaneously update several files with new version and
place a version tag in repository.Example:bump2versionpatchorbump2versionminorPacket release is based on pyproject.toml. First prepare your environment with:pip3installbuildTo build a packet use bump2version first and then go into project directory and run:python3-mbuild--wheelInstall manually (replace x.x.x with correct version) with:pipinstalldist/zfspace-x.x.x-py3-none-any.whl--force-reinstallPublishing notesTwine packet must be installedpip3installtwineTo publish:twineuploaddist/zfspace-x.x.x-py3-none-any.whlYou will be asked for login and password on PyPi.
Package: zfs-replicate
zfs-replicatehttps://github.com/alunduil/zfs-replicateBy Alex Brandtalunduil@gmail.comDescriptionzfs-replicate sends all Zettabyte File System (ZFS) snapshots to a remote host via SSH.  zfs-replicate
doesnotcreate ZFS snapshots.zfs-replicate forksautorepl.pyused byFreeNAS.zfs-replicate relates to several other projects which fit other niches:sanoid: A full snapshot management system. Its companion,syncoid, handles replication with many available options.zfs-replicate (BASH): A very similar project. The major differences are
configuration style and system expectations (for example, logging controls).
zfs-replicate uses parameters whereas zfs-replicate (BASH) uses a BASH script.znapzend: Another scheduling and replicating system.zrep: A SH script with several control commands for snapshot replication.Terms of useYou are free to copy, modify, and distribute zfs-replicate with attribution
under the terms of theBSD-2-Clauselicence. See theLICENSEfor details.PrerequisitesA remote system with a ZFS filesystem and thezfscommand-line toolsSSH access to that remote systemIf you're not using the root user remotely:Ensure the user can mount filesystemsFreeBSD:sysctl -w vfs.usermount=1Add ZFS permissionsCommand:zfs allow ${USER} ${PERMISSIONS} ${BACKUP_DATASET}PermissionsclonecreatedestroyholdmountpromotequotareadonlyreceiverenamereservationrollbacksendsnapshotA local ZFS filesystem andzfscommand-line toolsN.B., don't use the root user to access your remote system.How to use zfs-replicatepoetry installpoetry run -- zfs-replicate --helpDocumentationzfs-replicate --help: Help for zfs-replicate.LICENSE: Licence file explaining usage of zfs-replicate.Survey of ZFS Replication Tools: Overview of various ZFS replication
tools and their uses.Working With Oracle Solaris ZFS Snapshots and Clones: Oracle's guide to
working with ZFS snapshots.ZFS REMOTE REPLICATION SCRIPT WITH REPORTINGZFS replication without using Root user: How to configure ZFS replication
for a non-root user.Getting supportGitHub issues: Report any problems or features requests to GitHub issues.
Package: zfs-utils-osx
IntroductionA simple script to create and manage virtual ZFS images on OS X without
requiring repartitioningInstallTo install simply runpip install zfs-utils-osx.Example usageTo create a pool (does a dry-run with the-nflag):zfs.pyzpool-n<pool_name>Usage:usage:zfs.py[-h]{zpool}...optionalarguments:-h,--helpshowthishelpmessageandexitSubcommands:Pleasespecifyoneofthefollowingsubcommands{zpool,load}zpoolzpoolcreationloadload(import)thezpoolsZpool create usage:usage:zfs.pyzpool[-h][-cCOUNT][-sSIZE][-t{raidz1,raidz2,raidz3,mirror,raidz}][-n][-mMOUNTPOINT][-o][-pPATTERN]pool_namepositionalarguments:pool_nameThenameofthepooltocreateoptionalarguments:-h,--helpshowthishelpmessageandexit-cCOUNT,--countCOUNTTheamountofimagestouse(default:3)-sSIZE,--sizeSIZETheusablesizeofthezpoolinGiB(default:10GiB)-t{raidz1,raidz2,raidz3,mirror,raidz},--type{raidz1,raidz2,raidz3,mirror,raidz}Thezpooltypetouse(default:raidz)-n,--no-op,--dry-runShowwhatwillbedonebutdontexecute-mMOUNTPOINT,--mountpointMOUNTPOINTWhereshouldthediskbemounted(default:~/%(pool_name)s-o,--overwriteOverwriteoldimagesiftheyexist-pPATTERN,--patternPATTERNFilenamepatterntostoretheimages(default:%(pool_name)s_%(i)02d)Zpool import usage:usage:zfs.pyload[-h][-dIMAGE_DIRECTORY][-pPREFIX][--postfixPOSTFIX][-n]pool_names[pool_names...]positionalarguments:pool_namesThenameofthepooltoimportoptionalarguments:-h,--helpshowthishelpmessageandexit-dIMAGE_DIRECTORY,--image-directoryIMAGE_DIRECTORYFilenamepatterntostoretheimages(default:~/zfs/)-pPREFIX,--prefixPREFIXFilenameprefixfortheimages(default:%(pool_name)s_)--postfixPOSTFIXFilenamepostfixfortheimages(default:)-n,--no-op,--dry-runShowwhatwillbedonebutdontexecute
Package: zfun
zfun个人常用函数库。ZhenghyFuntionInstall:pip3 install -U zfunLogVersion 2.0.0 / 2022-07-30调整结构：常用组件com、生物学组件bio、数据库组件db、网页组件web。增加常用web组件增加初始化文档显示[doing]调整部分组件说明文档Version 1.1.6ModifyBIO.humanChrName, 默认为1-22,X,Y,M. 输入参数cl可选。Version 1.1.5Modifymkdirf, 接受一个路径，如果前面目录存在则创建。否则返回异常，退出程序。Version 1.1.4ModifyMYSQL.ExecQuery. 修改数据库查询返回值，res[0]为列名。不兼容以前的版本。Add ClassBIO. 增加生物信息学常用内容。增加静态方法BIO.humanChrName，返回人类染色体名称的字典。Version 1.1.0精简了常用函数：nowf(), mkdirf(),MYSQL(), mkscript()
Package: zgeo.atom
Provides Atom (RFC 4287) entry, subscription feed, and search feed documents
annotated with GeoRSS elements. Implements the Atom Publishing Protocol (RFC
5023).AtomPub collections can be made of Zope containers using the
“atompub-collection” view. Atom entry representations of contained objects can
be made using the “atom-entry” view. By registering IFileFactory and IWriteFile
adapters, one can allow creation and edit of objects via the Atom Publishing
Protocol.Major portions of this work were supported by a grant (toPleiades) from the
U.S. National Endowment for the Humanities (http://www.neh.gov).
Package: zgitignore
zgitignore is a small library to check if a file has been excluded by a.zgitignorefile (those are compatible with.gitignore/.dockerignorefiles).InstallationAs simple as it can be via pip:$ pip install zgitignoreOr direct installation from source:$ git clone git://github.com/zb3/zgitignore.git
$ cd zgitignore
$ python setup.py installUsageimportzgitignore# ZgitIgnore class stores the patterns, optionally takes two parameters: ignore_case and docker# by default, it is case sensitive to match .gitignore behaviour# for .dockerignore compatibility, use docker=Truef=zgitignore.ZgitIgnore(['build/','dist/','*egg-info'])# Patterns ending with / will match folders only:print('build file ignored?: ',f.is_ignored('build'))# False# When matching directories, set second parameter to True:print('build folder ignored?: ',f.is_ignored('build',True))# True# It is case sensitive by default:print('BUILD folder ignored?: ',f.is_ignored('BUILD',True))# False# Want it to be case-insensitive? No problemf=zgitignore.ZgitIgnore(['*pycache*','*pyc'],True)# second parameter is ignore_caseprint('PYCACHE file ignored?',f.is_ignored('PYCACHE'))# True# You can also add patterns laterignorefile=zgitignore.ZgitIgnore(ignore_case=True,docker=True)# this is compatible with .dockerignore filestry:withopen('.gitignore','r')asf:ignorefile.add_patterns(f.read().splitlines())except:pass# You can start paths with ./ or not.# Paths are normalized to match Unix style pathsprint('./a/b/c/d/e ignored?',ignorefile.is_ignored('./a/b/c/d/e'))# But by default, parent directories aren't checked recursively# To check them, use check_parents=Truef=zgitignore.ZgitIgnore(['build/'])print('build/test ignored?',f.is_ignored('build/test'))# Falseprint('build/test ignored when check_parents=True?',f.is_ignored('build/test',check_parents=True))# TrueFormatzgitignore supports format similar to.gitignorefile format. Differences are:**works everywhere``aaa**ooo``Will matchaaapotato2000/beeeee/llllll/sdsdoooIt can embed custom regex via{}. You can use\}to pass}to regex and\\to pass\to regexaaa{12(34|56|78)oo(aa|bb|dd)ii}888Will matchaaa1256oobbii888aaa{#[0-9a-f]{3,6\}}888Will matchaaa#00ffff888
Package: zgrobot
ZgRoBotZgRoBot是一个基于WeRoBot开发的微信公众号后台开发框架，采用MIT协议发布。我是来看【使用文档】的！安装推荐安装推荐使用pip进行安装：pipinstallzgrobot其他安装方法手动下载安装包下载地址1：release下载地址2：蓝奏云仓库、蓝奏云备用地址【密码：1n86】本地安装pipinstallzgrobot-XXX.tar.gz更新pipinstall--upgradezgrobot使用Hello World一个非常简单的Hello World微信公众号，会对收到的所有文本消息回复Hello Worldimportzgrobotrobot=zgrobot.ZgRoBot(token='tokenhere')@robot.textdefhello_world():return'Hello World!'robot.run()高级使用请参阅【使用文档】StatusStar History
Package: zgulde
Zgulde's Python UtilitiesA collection of miscellaneous helper functions and classes that I find useful.
Maybe you will too!To install/upgrade:python -m pip install --upgrade zguldePandas ExtensionsThe most polished of all of these modules isextend_pandas. It provides some
extensions topandasthat I've found useful.Usage:# from within a python script / jupyter notebook, etcimportzgulde.extend_pandas# now you can use all the additional methodsFurther documentation can be found here, or by looking at the built-in
help:importzgulde.extend_pandashelp(zgulde.extend_pandas)Other ModulesAre in various stages of completeness, and documentation for them (if present)
can be found within docstrings in the module.