Saravanan666/pypi-org huggingface dataset:
Package: zgw-auth-backend
1Welcome to zgw-auth-backend’s documentation!Version:1.0.4Source:https://github.com/maykinmedia/zgw-auth-backendKeywords:zgw, vng, apis, drfPythonVersion:3.8A Django REST framework authentication class for the ZGW API authentication pattern.The ZGW Auth JWT includes claims foruser_idanduser_representation. This
information can be used in your API to authenticate the actual end-user, even when
using gateway APIs.Contents1Welcome to zgw-auth-backend’s documentation!2Features3Installation3.1Requirements3.2Install4Usage2FeaturesAuthenticates the end-user based on theuser_idJWT claimFollows the auth spec for “API’s voor zaakgericht werken”3Installation3.1RequirementsPython 3.7 or highersetuptools 30.3.0 or aboveDjango 2.2 or newer3.2Installpipinstallzgw-auth-backendAdd it to your installed apps:INSTALLED_APPS+=["zgw_auth_backend"]Migrate:pythonmanage.pymigrateOptionally, you can add it to DRFs default backends:REST_FRAMEWORK={"DEFAULT_AUTHENTICATION_CLASSES":[...,"zgw_auth_backend.authentication.ZGWAuthentication",...,],}4UsageSpecify the authentication class on your view(s):fromrest_frameworkimportviewsfromzgw_auth_backend.authenticationimportZGWAuthenticationclassMyView(APIView):authentication_classes=(ZGWAuthentication,)Add the client credentials in the admin (client ID + secret)Generate a ZGW auth JWT with theuser_idclaim, using the credentials from step 1Make an API call to the endpoint, including theAuthorization: Bearer <jwt>headerVerify that the user withuser_idusername is created if it didn’t exist yet, or
if it did, thatrequest.useris now this user.
Package: zgw-consumers
1Welcome to ZGW Consumers’ documentation!Version:0.30.0Source:https://github.com/maykinmedia/zgw-consumersKeywords:OpenAPI, Zaakgericht Werken, Common Ground, NLXManage your external API’s to consume.Contents1Welcome to ZGW Consumers’ documentation!2Features3Installation3.1Requirements3.2Install4Usage2FeaturesStore services with their configuration in the databaseIntegrate with OpenAPI 3.0 specificationsNLX supportDeclare data/domain objects as modern Python dataclasses3Installation3.1RequirementsPython 3.10 or newersetuptools 30.3.0 or newerDjango 3.2 or newer3.2InstallInstall from PyPIpipinstallzgw-consumersAddzgw_consumersandsimple_certmanagerto theINSTALLED_APPSsetting.Optionally overrideZGW_CONSUMERS_CLIENT_CLASSto a custom client class.Optionally specifyZGW_CONSUMERS_OAS_CACHEto point to a separate django cache.
Defaults todjango.core.cache.DEFAULT_CACHE_ALIAS, which isdefaultin
practice. For performance reasons we highly recommend to use a real cache backend
like Redis or Memcache.4UsageIn the Django admin, you can createServiceinstances to define your external APIs.ClientTo get a client for a given resource, you can use:fromzgw_consumers.clientimportbuild_clientfromzgw_consumers.modelsimportServicemy_service=Service.objects.get(api_root="https://api.example.com/")client=build_client(my_service)withclient:# The preferred way to use the client is within a context managerclient.get("relative/url")The resulting client will have certificate and authentication automatically configured from the database configuration.
Package: zgy2sgz
zgy2sgzTiny utility package which has only one job: Provide a Python function which uses Schlumberger's ZGY library and LLNL's ZFP library to read ZGY files and writeseismic-zfp (.SGZ) formatfiles.zgy2sgz is intended exclusively for use by theseismic-zfp packageExamplefromzgy2sgzimportconvertFile# Yes, the first two arguments are bytes rather than strings# The 3rd argument is bits_per_voxel {16, 8, 4, 2, 1}convertFile(b'seismic_file.zgy',b'seismic_file.sgz',4)
Package: zhang2016dependency
zhang2016dependencyThis package provides a simple implementation of the models proposed in
the paper:Zhang, R., Lee, H., & Radev, D. (2016). Dependency sensitive convolutional neural networks for modeling sentences and documents. arXiv preprint arXiv:1611.02361.InstallationThis package depends on theKeraslibrary. This
means you will need to install a backend library in order to use this
module. Take a look toKeras installationto get more information.After having installed the backend of yout choice, you just need to
install this package usingpip:pip install zhang2016dependencyUsageThis package only provides a single model. To get detailed information
on the parameters the model accepts, take a look to the documentation
included with the module class.Here is a complete example of instantiation of the model proposed in the
original paper using two channel of randomly initialized word
embeddings:importnumpyasnpimportnumpy.randomasrngvocabulary_size=1000embedding_size=300value=np.sqrt(6/embedding_size)weights_shape=(vocabulary_size+1,embedding_size)weights=rng.uniform(low=-value,high=value,size=weights_shape)channels=[{'weights':[weights],'trainable':False,'input_dim':vocabulary_size+1,'output_dim':embedding_size,'name':'random-embedding-1'},{'weights':[weights],'trainable':True,'input_dim':vocabulary_size+1,'output_dim':embedding_size,'name':'random-embedding-2'}]windows=[{'filters':100,'kernel_size':3,'activation':'relu','name':'3-grams'},{'filters':100,'kernel_size':4,'activation':'relu','name':'4-grams'},{'filters':100,'kernel_size':5,'activation':'relu','name':'5-grams'}]fromzhang2016dependencyimportModelmodel=Model(channels=channels,windows=windows,sentence_length=37,num_classes=6,dropout_rate=0.5,classifier_activation='softmax',include_top=True,name='DSCNN')model.compile(optimizer='adadelta',loss='categorical_crossentropy',metrics=['accuracy'])model.summary()
Package: zhang-hello
测试有序列表adj --app polls -a forms
dj --app polls -a urlsbdj --app polls -a forms
dj --app polls -a urlscdj --app polls -a forms
dj --app polls -a urlsdjangoshortcuts提供一个全局命令，用于方便快捷生成模板等相关文件。安装python setup.py install使用方式在安装成功之后，获得一个全局命令：dj，通过 dj -h 可以查看到该命令的使用方式$dj -h
usage: dj [-h] --app APP [-a ADD] [-t TEMPLATE] [-s STATIC]

Easily to create files when using django

optional arguments:
  -h, --help            show this help message and exit
  --app APP             input the app name which django created
  -a, --add ADD         add file automatically, the value must be one of
                        ['forms', 'urls']
  -t, --template TEMPLATE
                        add templates html files
  -s, --static STATIC   add static files

You must cd BASE_DIR to run this script全局命令备忘查询有时候忘记安装这些模块都提供了哪些全局命令，可以通过以下这种方式查询。$python -m djangoshortcuts -h
Please use command [dj -h] for the detail.举例说明下面简要举例说明这个命令的使用方式，其实看上面的 usage 就可以明白九成以上了。假设 django app 名称为 polls， 首先需要切换到网站的根目录下，就可以运行以下命令生成 forms.py 或者 urls.py 文件dj --app polls -a forms
dj --app polls -a urls生成 index.html 文件dj --app polls -t index.html该命令会自动创建 polls/templates/polls 相关的文件夹，并生成 polls/templates/polls/index.html 文件生成 style.css 文件dj --app polls -s style.css该命令会自动创建 polls/static/polls 相关的文件夹，并生成 polls/static/polls/style.css 文件考虑到静态文件夹下常增加 css 和 js 文件夹来管理相关静态文件，所以在 -s 参数的行动逻辑多增加一个功能dj --app polls -s css/style.css该命令和 3 的区别在于，文件的路径为 polls/static/polls/css/style.css，相关的文件夹会自动创建dj --app polls -s js/login.js同样地，文件的路径为 polls/static/polls/js/login.js后记以上参数中，--app 是必选参数，除此之外的参数都是可选参数并且不互斥。也就是说添加文件的时候，不同的参数可以同时进行。
Package: zhangTCD
A. To-do listpack data informationImage correlationImage contrast adjustthickness recognitionAdd labels to multiple linesComplete linescan for SEMAdd information for saved dataB. Completed taskMerge individual curves from multiple filesAdd shaded regions for peak rangeSEM - remove data zoneimage data structure createdxyplot data structure createdrestructure - abstract a base class for plotting/updating data (figProc)Add save/load toOutput individual maps/2d plots so that they can be plotted in a subfigureOutput images1. Data structure1.0 imgData1.1 lineData1.1 figProc1.2 hyperImg1.2 spcMap1.3 imgMap1.3.1. SEMremove_data_zone(kept = 0.85):kept: the portion (from top) remains; returns a new instance.
Package: zhangxulong
Ver: 0.0.12 hmmlearn # cannot build wheel on ubuntuVer: 0.0.11 remove qrcodeVer: 0.0.10 mail send by 126 day counterVer: 0.0.9 CloudFlare api admin dns recordVer: 0.0.8 encode vps subscribeVer: 0.0.7 wechat bot with tulingVer: 0.0.5 baseZhang review codesVer: 0.0.2 python 3.0 and init# A python module of utils for Zhang Xu-long# zhangxulong
[![zhangxulong](https://img.shields.io/pypi/v/zhangxulong.svg)](https://pypi.python.org/pypi/zhangxulong)# python 3.7# Q&A[SSL: CERTIFICATE_VERIFY_FAILED]Just browse to Applications/Python 3.7 and double-click Install Certificates.command.pypircpython3 setup.py sdist uploadpython3 setup.py check# requirementspip3 installsoundfile
itchat
PyPDF2
Package: zhao
包包简介本包包之所以仅发布了 Python3 的版本，是因为一度坚守着 Python2 的我如今也转到3了。而且，我要推荐大家将 Python3 作为您学习和使用 Python 的起点。这个包包里的东西是我准备写给自己用的一些小玩意，您可能会觉得有点五花八门，但我真心希望其中的某些代码对您也有用（使用说明中提到的内容尤其值得您的信赖）。安装升级$pip3install--user-Uzhao使用说明百度语音API通过 zhao.xin_api.BaiduYuyin 对象，使用百度语音API进行语音识别或语音合成:fromzhao.xin_api.baiduyuyinimportBaiduYuyinyaya=BaiduYuyin(api_key='您自己的百度开发者API_KEY',secret_key='您自己的百度开发者SECRET_KEY')yaya.tts_setup(speed=3,person=4)yaya.tts('我是百度语音的丫丫',save='yaya.mp3')听，百度的小妹声音真甜：）小米路由器API如果您可能也使用小米路由器 ，可能您也发现它会不时掉线，只有手动断开ADSL并重新拨号才能恢复上网？那么，您可以试试 zhao.xin_api.miwifi.MiWiFi 对象，在自己家的服务器上编写一个脚本，并设为每分钟执行一次的计划任务，让它免除您掉线的烦恼。fromzhao.xin_api.miwifiimportMiWiFiMIWIFI=MiWiFi(password='您自己的小米路由器WEB登录密码')ifMIWIFI.is_offline:ifMIWIFI.reconnect():printf('自动重新拨号成功')else:printf('自动重新拨号失败')用 zhao.xin_email.Mailman 发送带附件的邮件fromzhao.xin_emailimportMailmanmailman=Mailman(host='YOUR_SMTP_HOST',user='YOUR_SMTP_USER',password='YOUR_SMTP_PASS')ifmailman.sendmail(sender='youname@example.com',receivers=['tom@gmail.com','jerry@hotmail.com'],subject='Hello, World!',content='你好，世界！',cc=['superman@sina.com'],bcc=['boss@haven.com'],files=[__file__]):print('邮件发送成功')else:print('邮件发送失败')简单好用的数据库类 XinSQLite>>>fromzhao.xin_sqliteimportXinSQLite>>>DB=XinSQLite(sql='CREATE TABLE language (name text, year integer);')>>>DB.execute('insert into language values (:name, :year);',name='C',year=1972)1>>>DB.executemany('insert into language values (:name, :year);',[dict(name='Python',year=1991),dict(name='Go',year=2009)])2>>>DB.query('select count(*) as total from language;',fetch=1).get('total',0)3>>>DB.query('select * from language where name=:name limit 1;',fetch=1,name='Ruby'){}>>>DB.query('select * from language where name=:name limit 1;',fetch=1,name='Python'){'year':1991,'name':'Python'}>>>forrowinDB.query('select name, year from language;'):print(row){'year':1972,'name':'C'}{'year':1991,'name':'Python'}{'year':2009,'name':'Go'}更多用途和秘密，有待您的探索 …更新历史v0.0.94时间: 2018-05-14添加: xin_api.amazon_mws 模块v0.0.92时间: 2018-04-11添加: xin_os 模块的几个新函数v0.0.87时间: 2018-03-29添加: xin_api 包添加: xin_api.baiduyuyin 模块添加: xin_api.miwifi 模块v0.0.80时间: 2018-03-28添加: xin_os 模块添加: xin_re 模块添加: xin_net 模块添加: xin_audio 模块添加: xin_sqlite 模块添加: xin_postgresql 模块更新: 为 xin_email.Mailman.sendmail() 添加 cc, bcc, 发送附件等功能v0.0.62时间: 2018-03-27添加: xin_email 模块
Package: zhatlebaye-kafka
Zhatlebaye KafkaZhatlebaye Kafka is an extension to the aiokafka library with enhanced producer and consumer functionalities.InstallationYou can install the Zhatlebaye Kafka library using pip:pipinstallzhatlebaye_kafkaClasses and FunctionsKafkaProducerTheKafkaProducerclass is used to produce messages to Kafka topics. It uses theaiokafka.AIOKafkaProducerclass under the hood. It has the following methods:connect(): Connects to the Kafka server.disconnect(): Disconnects from the Kafka server.send_message(topic, message, callback=None): Sends a message to a Kafka topic. If a callback function is provided, it will be called with the result of the send operation.send_message_sync(topic, message): A synchronous version ofsend_message(). It blocks until the message has been sent.KafkaProducerSingletonTheKafkaProducerSingletonclass is a singleton version of theKafkaProducerclass. It has the same methods asKafkaProducer, but they are class methods instead of instance methods.KafkaRouterTheKafkaRouterclass is used to route messages from Kafka topics to their respective handlers. It has the following methods:add_handler(topic, handler): Adds a handler function for a Kafka topic. The handler function will be called with the message whenever a message is received from the topic.handle_message(message): Calls the handler function for the topic of the given message with the message as an argument.KafkaConsumerTheKafkaConsumerclass is used to consume messages from Kafka topics. It uses theaiokafka.AIOKafkaConsumerclass under the hood. It has the following methods:start(): Starts the consumer. It will begin consuming messages from its topics and passing them to their respective handlers.stop(): Stops the consumer.run(): Starts the consumer and keeps it running untilstop()is called.UsageKafkaProducerfromzhatlebaye_kafkaimportKafkaProducerproducer=KafkaProducer(bootstrap_servers='localhost:9092')awaitproducer.connect()awaitproducer.send_message('my-topic',{'key':'value'})KafkaProducerSingletonfromzhatlebaye_kafkaimportKafkaProducerSingletonawaitKafkaProducerSingleton.connect(bootstrap_servers='localhost:9092')awaitKafkaProducerSingleton.send_message_sync('my-topic',{'key':'value'})KafkaRouterfromzhatlebaye_kafkaimportKafkaRouterrouter=KafkaRouter()router.add_handler('my-topic',my_handler)KafkaRouterThe KafkaRouter is used to route messages from Kafka topics to their respective handlers. Here's a basic example of how to use it:fromzhatlebaye_kafkaimportKafkaRouter,KafkaConsumerdefmy_handler(message):print(f"Received message:{message}")router=KafkaRouter()router.add_handler('my-topic',my_handler)consumer=KafkaConsumer(group_id='my-group',bootstrap_servers='localhost:9092',router=router)awaitconsumer.start()LicenseThis project is licensed under the terms of the MIT license.ContactYerlan Yesmoldin -e_esmoldin@kbtu.kzProject Link:https://gitlab.com/di-halyk-academy-zhatlebaye/zhatlebaye-kafka
Package: zhaws
zha-websocket-serverRunning the serverCheckout the code and open a terminal at the root of the project. Then run the following commands:script/setup
script/runOpen another terminal at the root of the project and run the following command:script/run_clientTo start the server modify the content of thestart_network.jsonfile in the examples directory to match your radio and paste it as a single line into the console and press return / enterto stop the server paste the content of thestop_network.jsonfile into the prompt in the console as a single line and press return / enter
Package: zhcode
zhcodezhcodeis a Python library designed to facilitate coding in Chinese. It's main purpose is to createesoteric forms of programming languages using the Chinese language.You can installzhcodeby runningpip3 install zhcodein your environment.PythonCurrently, basic Python 3 functions are supported. The project is still in the process of translating library keywords, names, and functions into Chinese equivalents. In general, the syntax for coding in
中文Python is the same as that of normal Python, simply with variables switched. However, several syntactic additions have been made: the dot delimeter.in standard Python has been changed to·, and
variables should be enclosed with「」to facilitate easier differentiation.Furthermore, Chinese keyboard characters often have a tendency to include extra space as part of the character—-thus oftentimes reducing the need for extra whitespace after the character. In particular,
variable delimeters. Thus, there is no need to add an extra space after a closing variable delimeter (」)--the translator will add one automatically.
Package: zhconv
zhconv提供基于 MediaWiki 词汇表的最大正向匹配简繁转换。Python 2, 3 通用。支持以下地区词转换：zh-cn大陆简体zh-tw台灣正體zh-hk香港繁體zh-sg马新简体（无词汇表，需要手工指定）zh-hans简体zh-hant繁體示例>>>print(convert(u'我幹什麼不干你事。','zh-cn'))我干什么不干你事。>>>print(convert(u'人体内存在很多微生物','zh-tw'))人體內存在很多微生物完整支持 MediaWiki 人工转换语法：>>>print(convert_for_mw(u'在现代，机械计算-{}-机的应用已经完全被电子计算-{}-机所取代','zh-hk'))在現代，機械計算機的應用已經完全被電子計算機所取代>>>print(convert_for_mw(u'-{zh-hant:資訊工程;zh-hans:计算机工程学;}-是电子工程的一个分支，主要研究计算机软硬件和二者间的彼此联系。','zh-tw'))資訊工程是電子工程的一個分支，主要研究計算機軟硬體和二者間的彼此聯繫。>>>print(convert_for_mw(u'張國榮曾在英國-{zh:利兹;zh-hans:利兹;zh-hk:列斯;zh-tw:里茲}-大学學習。','zh-sg'))张国荣曾在英国利兹大学学习。>>>print(convert_for_mw('毫米(毫公分)，符號mm，是長度單位和降雨量單位，-{zh-hans:台湾作-{公釐}-或-{公厘}-;zh-hant:港澳和大陸稱為-{毫米}-（台灣亦有使用，但較常使用名稱為毫公分）;zh-mo:台灣作-{公釐}-或-{公厘}-;zh-hk:台灣作-{公釐}-或-{公厘}-;}-。','zh-cn'))毫米(毫公分)，符号mm，是长度单位和降雨量单位，台湾作公釐或公厘。和其他高级字词转换语法。命令行工具python -mzhconv [-w] {zh-cn|zh-tw|zh-hk|zh-sg|zh-hans|zh-hant|zh} < input > output
Package: zhdate
ZhDate 中国农历日期处理对象不用网络接口直接本地计算中国农历，支持农历阳历互转感谢EillesWan更新修正农历初一前一天错误修正f 字符串输出方式安装方法通过 pip 直接安装pipinstallzhdate或从git拉取gitclonehttps://github.com/CutePandaSh/zhdate.gitcdzhdate
pythonsetup.pyinstall更新pipinstallzhdate--upgrade使用方法见如下代码案例:fromzhdateimportZhDatedate1=ZhDate(2010,1,1)# 新建农历 2010年正月初一 的日期对象print(date1)# 直接返回农历日期字符串dt_date1=date1.to_datetime()# 农历转换成阳历日期 datetime 类型dt_date2=datetime(2010,2,6)date2=ZhDate.from_datetime(dt_date2)# 从阳历日期转换成农历日期对象date3=ZhDate(2020,4,30,leap_month=True)# 新建农历 2020年闰4月30日print(date3.to_datetime())# 支持比较ifZhDate(2019,1,1)==ZhDate.from_datetime(datetime(2019,2,5)):pass# 减法支持new_zhdate=ZhDate(2019,1,1)-30#减整数，得到差额天数的新农历对象new_zhdate2=ZhDate(2019,1,1)-ZhDate(2018,1,1)#两个zhdate对象相减得到两个农历日期的差额new_zhdate3=ZhDate(2019,1,1)-datetime(2019,1,1)# 减去阳历日期，得到农历日期和阳历日期之间的天数差额# 加法支持new_zhdate4=ZhDate(2019,1,1)+30# 加整数返回相隔天数以后的新农历对象# 中文输出new_zhdate5=ZhDate(2019,1,1)print(new_zhdate5.chinese())# 当天的农历日期ZhDate.today()
Package: zhdk
ZHDKOur mission atZamais to protect people’s privacy by preventing data breaches and unethical surveillance.Following a recent breakthrough in homomorphic encryption, we are now building a ZeroTrust deep learning framework that enables fast and accurate inference over encrypted data, with minimal performance overhead, no changes to the network architecture and no retraining necessary.Zamais open-source by design, as we believe privacy-enabling technologies should benefit the widest possible community of developers and researchers.WarningThis package is not a working package.Testimportzhdkzhdk.hello_world()
Package: zh_doclint
# zh-doclintNote: This project is highly related to Chinese, so the document is writtern in Chinese.## 简介一个检查文档风格的工具。## 安装```pip install zh-doclint```## 使用```shell$ zh-doclint --helpUsage: zh-doclint [OPTIONS] FPATHOptions:--version  Show the version and exit.--help     Show this message and exit.$ ccat doc.md我跟你讲，这里有问题. 这个case一看就是“药丸”$ zh-doclint doc.md==========================================E101: 英文与非标点的中文之间需要有一个空格==========================================LINE: 2case一看就是“-－...............==================================================E201: 只有中文或中英文混排中，一律使用中文全角标点==================================================LINE: 1里有问题.-.........==========================================================E204: 中文文案中使用中文引号「」和『』，其中「」为外层引号==========================================================LINE: 2一看就是“药丸－..............LINE: 2是“药丸”－..........```## 支持的检查项目| 错误码 | 检查范围 | 描述                                                                           || ----   | -------- | ------------------------------------------------------------------------------ || E101   | 段落     | 英文与非标点的中文之间需要有一个空格                                           || E102   | 段落     | 数字与非标点的中文之间需要有一个空格                                           || E103   | 段落     | 除了「％」、「℃」、以及倍数单位（如 2x、3n）之外，其余数字与单位之间需要加空格 || E104   | 段落     | 书写时括号中全为数字，则括号用半角括号且首括号前要空一格                       || E201   | 句子     | 只有中文或中英文混排中，一律使用中文全角标点                                   || E202   | 句子     | 如果出现整句英文，则在这句英文中使用英文、半角标点                             || E203   | 段落     | 中文标点与其他字符间一律不加空格                                               || E204   | 句子     | 中文文案中使用中文引号「」和『』，其中「」为外层引号                           || E205   | 段落     | 省略号请使用「……」标准用法                                                     || E206   | 段落     | 感叹号请使用「！」标准用法                                                     || E207   | 段落     | 请勿在文章内使用「~」                                                          || E301   | 段落     | 常用名词错误                                                                   |详情见 [写作规范和格式规范，DaoCloud 文档](http://docs-static.daocloud.io/write-docs/format)。
Package: zhei
安装pipinstallzhei使用importzheiasjj.hi()功能支持帮助信息hi()：打印 Bannerhelp()：打印帮助信息，待完善print_error_info(e: Exception)：打印错误信息通知notice(msg, warning=False, access_token="", secret="")：钉钉通知，默认读取 init_env() 设置的环境变量中的凭证Args:
    msg (str): 通知内容
    warning (bool, optional): 是否为警告. Defaults to False.
    access_token (str, optional): 钉钉机器人 access_token. Defaults to "".
    secret (str, optional): 钉钉机器人 secret. Defaults to "".配置init_env(config: Union[DictConfig, dict])：初始化环境包括随机种子、可见GPU、Comet.ml环境变量、进程名

Args:
    config (DictConfig): 配置文件
        seed (str, optional): 种子. Defaults to '3407'.
        use_deterministic (bool, optional): 是否使用确定性算法，使用了训练会变慢. Defaults to False.
        visibale_cuda (str, optional): 设置可见 GPU，如果不使用设置为 ''. Defaults to 'all'.
        comet_exp (dict, optional): Comet.ml相关环境变量设置. Defaults to {}.
        proctitle (str, optional): 进程名. Defaults to 'python'.
        proctitle_prefix_id (bool, optional): 是否在进程名前边添加进程 ID. Defaults to True.处理器gpu_ready())：检查 GPU 是否可用set_processing_units(config: Union[DictConfig, dict] = {})：设置处理器支持自动选择和手动选择、排队和不排队

Args:
    config (dict, optional): Defaults to {}.
        processing_unit: 处理器类型，可选值为：cpu、mps, 1, ^2 等，其中 ^2 表示自动选择两块 GPU，默认为 cpu
        processing_unit_type: 选择处理器，可选值为：cpu、mps、gpu-a-s、gpu-a-m、gpu-m-s、gpu-m-m
        processing_unit_min_free_memory: 最小空闲内存，单位为 GiB，默认为 10
        processing_unit_min_free_memory_ratio: 最小空闲内存比例，默认为 0.5
        queuing: 是否排队，依赖 Redis，默认为 False
        visible_devices: 可见的 GPU 序号，用逗号分隔，默认为 None

Returns:
    Union[DictConfig, dict]: config包装类Result：包装类，用于作为模块间通信的媒介，可使用字典进行初始化文件读取和保存load_in(path, data_name="")：读取文件根据文件后缀名自动选择读取方法
    目前支持保存类型有：‘pkl’、‘txt’、‘pt’、‘json’, 'jsonl'、'csv'

Args:
    data_name: str, 打印提示时需要，便于控制台查看保存的文件是什么文件, 默认为空

Returns:
    data：Objectsave_as(data, save_path, file_format="pt", data_name="", protocol=4)：保存文件将参数中的文件对象保存为指定格式格式文件
    目前支持保存类型有：‘pkl’、‘txt’、‘pt’、‘json’, 'jsonl'
    默认为‘pt’

Args:
    data: obj, 要保存的文件对象
    save_path: str, 文件的保存路径，应当包含文件名和后缀名
    data_name: str, 打印提示时需要，便于控制台查看保存的文件是什么文件, 默认为空
    protocol: int, 当文件特别大的时候，需要将此参数调到4以上, 默认为4
    file_format: str, 要保存的文件类型，支持‘pkl’、‘txt’、‘pt’、‘json’、‘jsonl’

Returns:
    None
Package: zhenglin
pip install zhenglin@ Author: zhenglin@version: 1.18.14This package contains some off-the-shelves deep-learning networks implemented with.usepipinstallzhenglinto install this package.zhenglinpackage is mainly motivated by eriklindernoren and hisrepowhich provides manysuper clean and easy-to-readimplementation of GAN variants. It is friendly to beginners and also a good reference for advanced users, especially for DL developpers.Specifically, this package providesA universal structure underzhenglin.dl.template.v1.*Loss functions underzhenglin.dl.lossesMetrics underzhenglin.dl.metrics16 highly modular and easy-to-use implementation of deep-learning networks underzhenglin.dl.networks.*which includes(from a to z)cycleGANDDPMDeblurGANEDSRESRGANNoise2VoidPix2PixRCANResNetRestormerRRDBNetSqueezeNetSRDRMSRGANSWinIRU2NetUNetAttention-UNetNews and UpdatesAug 13 2021:Version: 1.18.15Add basic quantization support.