Saravanan666/pypi-org huggingface dataset:
Package: aa-camera
关于Pubsubpubsub的最初目的是通过redis服务转发单目摄像头数据，供深度学习和ROS两方同时订阅实际使用过程中增加了转发FairMOT识别结果的用途，同时pubsub在主-从两台机器上进行部署在0.1.4版本中，增加了对主-从和多话题的支持，修改了配置文件的配置方式在0.1.5版本中，完善了setup.py，并发布到pypi在0.1.6版本中，增加了configs模块，可通过此模块直接获得配置信息1. 遗留问题1.1.redis.exceptions.ConnectionError: Connection closed by server.https://github.com/andymccurdy/redis-py/issues/1140使用try... except redis.exceptions.ConnectionError:的方法规避了此问题FYI
- 在本项目下，使用`py37`没有出现此问题
- 在本项目下，使用`python`没有出现此问题
- 在`FairMOT`下出现此问题，初步怀疑是`timeout`问题该问题通过安装hiredis的方式进行了修复，修复版本0.1.5，暂未出现此问题2. 依赖本工具依赖redis服务请先安装redis-serverapt install redis-server为Python安装依赖pip3.7 install opencv-python numpy pyyaml hiredis redis
pip2.7 install opencv-python numpy pyyaml hiredis redis补充说明setup.py文件本身指明了相关依赖，但是由于公司网络原因，可能会出现无法正常下载安装的情况，建议在安装之前手动完成依赖包的安装。3. 作为程序部署step1. 在~路径下新建路径robot\configs，注意：请勿使用其他路径step2. 将项目目录下的配置文件config\pubsub.yaml拷贝到~\robot\configs路径下，注意：请勿修改文件名称step3. 按实际情况修改~\robot\configs\pubsub.yaml文件# camera data pub & sub config
mono:
  type: "pub"
  source: "0"
  host: "172.172.0.10"
  port: "6379"
  db: 3
  name: "robot_mono"
  topic: "robot_mono"

# bbox from FairMOT pub & sub config
track:
  type: "pub"
  source: "0"
  host: "172.172.0.11"
  port: "6379"
  db: 3
  name: "robot_track"
  topic: "robot_track"参数说明：mono: 指定为单目相机，该名称请勿修改
  type: 发布消息，请勿修改
  source: camera device id, 通过 ls /dev/video* 配合 v4l2-ctl -d  /dev/video0 --all查看
  host: 消息发布ip，对应部署了pubsub程序的服务器的IP地址
  port: 消息发布端口，对应部署了pubsub程序的服务器的Redis服务的端口
  db: 不需改动
  name: 消息发布服务的名称
  topic: 消息发布话题的名称

track: 指定为跟踪算法，该名称请勿修改
  type: 发布消息，请勿修改
  source: 请勿修改
  host: 消息发布ip，对应部署了tracking算法的服务器的IP地址
  port: 消息发布端口，对应部署了tracking算法的服务器的Redis服务的端口
  db: 不需改动
  name: 消息发布服务的名称
  topic: 消息发布话题的名称step5. 在~/.bashrc中声明configs地址执行下面的命令，将configs的路径加入到系统环境echo export ROBOT_CONFIGS=$(dirname ~/.)'/robot/configs' >> ~/.bashrc && source ~/.bashrc请务必注意将配置文件放在上述指定文件夹下setp6. 如果存在主-从部署，请在从机上重复上述过程请注意：模块和程序使用同样的配置文件！！！3.1. 开机自启动[未测试]在/etc/rc.local脚本中增加了开机自启动代码，代码如下export PUBLISHERPATH=$(dirname ~/.)'/robot/pubsub'
source $(dirname $(which conda))/activate pubsub
cd $PUBLISHERPATH
python app.py第一段申明了MONOPUB的路径第二段进入到该路径第三段在后台启动脚本publish.sh并输出日志到pub.log第三段回到home可使用ps -ef | grep python查看4. 作为模块使用分别在python2.7和python3.7版本下进行测试。4.1. 安装pip install aa-pubsub4.2. 配置如果主-从部署在同一IP下，可以不必另外配置如果主-从部署在不同IP下，从机需要依照主机的配置方法自行配置请注意：模块和程序使用同样的配置文件！！！5. 性能目前Publisher端读取摄像头数据到Subscriber端得到数据拥有约100ms的延时，其中有20秒是docker造成的延时。6. 开发/贡献代码6.1. 测试用例测试用例的统一运行入口是test.py文件python test.py各测试用例请统一在testcases路径下实现，以test_{name}.py的形式命名py文件中，测试类以{name}Test的形式命名更多请参考unittest6.2. 提交pip安装提交需要的工具pip install twine更新version.py的版本号提交python setup.py sdist
twine upload dist/*
Package: aacgm2
This is a Python wrapper for theAACGM-v2 C library, which allows converting between geographic and magnetic coordinates. The currently included version of the C library is 2.6. The wrapper is provided “as is” in the hopes that it will be useful to the space science community, and will not automatically be updated when new versions of the C library is released. MLT calculations are included in the wrapper (not part of the C library, please see the documentation for implementation details). The package is free software (MIT license).This fork ofaacgmv2(github link)
provides the interface compatible withaacgmv2 < 2.4.Quick startInstall (requires NumPy):pip install aacgm2Convert between AACGM and geographic coordinates:>>> from aacgm2 import convert
>>> from datetime import date
>>> # geo to AACGM, single numbers
>>> mlat, mlon, malt = convert(60, 15, 300, date(2013, 11, 3))
>>> "{0:.8f}".format(float(mlat))
'57.47357891'
>>> "{0:.8f}".format(float(mlon))
'93.61113360'
>>> "{0:.8f}".format(float(malt))
'1.04566346'
>>> # AACGM to geo, mix arrays/numbers
>>> glat, glon, galt = convert([90, -90], 0, 0, date(2013, 11, 3), a2g=True)
>>> ["{0:.8f}".format(float(gl)) for gl in glat]
['82.96859922', '-74.33899667']
>>> ["{0:.8f}".format(float(gl)) for gl in glon]
['-84.65010944', '125.84759847']
>>> ["{0:.8f}".format(float(ga)) for ga in galt]
['14.12457922', '12.87721946']Convert between AACGM and MLT:>>> from aacgm2 import convert_mlt
>>> from datetime import datetime
>>> mlon = convert_mlt([0, 12], datetime(2013, 11, 3, 18, 0), m2a=True)
>>> ["{0:.8f}".format(float(ml)) for ml in mlon]
['159.08043649', '339.08043649']If you don’t know or use Python, you can also use the command line. See details in the full documentation.Documentationhttps://aacgm2.readthedocs.org/BadgesdocstestspackageChangelog2.6.0 (2020-08-16)Same as 2.6.0-rc22.6.0-rc2 (2020-08-14)Binary wheels for MacOSX2.6.0-rc1 (2020-08-12)Updated AACGM-v2 coefficients derived using the IGRF13 modelUpdated IGRF and GUFM1 coefficients using the IGRF13 modelAdded additional checks to the C code for reading the IGRF13 coefficient fileUpdated CI setup on travis and appveyorDeployment of linux and osx wheels to the package indexChanged version support to 2.7, 3.4, 3.5, 3.6, 3.7, and 3.8Updated test values to match new coefficients2.5.0 (unreleased)Updated C code and coefficients to version 2.5.2.3.9 (2018-05-27)Update to AACGM-v2.4, which includes changes to the inverse MLT and
dipole tilt functions and some minor bug fixesUpdated dependenciesRemoved support for python 3.32.0.0 (2016-11-03)Change method of calculating MLT, see documentation of convert_mlt for details1.0.13 (2015-10-30)Correctly convert output of subsol() to geodetic coordinates (the error in MLT/mlon conversion was not large, typically two decimal places and below)1.0.12 (2015-10-26)Return nan in forbidden region instead of throwing exception1.0.11 (2015-10-26)Fix bug in subsolar/MLT conversion1.0.10 (2015-10-08)No code changes, debugged automatic build/upload process and needed new version numbers along the way1.0.0 (2015-10-07)Initial release
Package: aacgmv2
This is a Python wrapper for theAACGM-v2 C library, which allows
converting between geographic and magnetic coordinates. The currently included
version of the C library is 2.6.  The package is free software
(MIT license).  When referencing this package, please cite both the package DOI
and the AACGM-v2 journal article:Shepherd, S. G. (2014), Altitude‐adjusted corrected geomagnetic coordinates:
Definition and functional approximations, Journal of Geophysical Research:
Space Physics, 119, 7501–7521, doi:10.1002/2014JA020264.Quick startInstall (requires NumPy):pip install aacgmv2Convert between AACGM and geographic coordinates:>>> import aacgmv2
>>> import datetime as dt
>>> import numpy as np
>>> np.set_printoptions(formatter={'float_kind': lambda x:'{:.4f}'.format(x)})
>>> # geo to AACGM, single numbers
>>> dtime = dt.datetime(2013, 11, 3)
>>> np.array(aacgmv2.get_aacgm_coord(60, 15, 300, dtime))
array([57.4736, 93.6111, 1.4816])
>>> # AACGM to geo, mix arrays/numbers
>>> np.array2string(np.array(aacgmv2.convert_latlon_arr([90, -90], 0, 0, dtime, method_code="A2G"))).replace('\n', '')
'[[82.9686 -74.3390] [-84.6501 125.8476] [14.1246 12.8772]]'Convert between AACGM and MLT:>>> import aacgmv2
>>> import datetime as dt
>>> import numpy as np
>>> np.set_printoptions(formatter={'float_kind': lambda x:'{:.4f}'.format(x)})
>>> # MLT to AACGM
>>> dtime = dt.datetime(2013, 11, 3, 0, 0, 0)
>>> np.array(aacgmv2.convert_mlt([1.4822189, 12], dtime, m2a=True))
array([93.6203, -108.6130])If you don’t know or use Python, you can also use the command line. See details
in the full documentation.Documentationhttps://aacgmv2.readthedocs.io/en/latest/http://superdarn.thayer.dartmouth.edu/aacgm.htmlBadgesdocstestspackage
Package: aa-charlink
AllianceAuth CharLinkA simple app for AllianceAuth that allows users to link each character to all the AllianceAuth apps with only 1 login action.OverviewBasic usageSelect which app you want to link your character toLogin on CPP siteCharacter linked to the selected appsAuditingUsers with the appropriate permission (seepermissions) can audit the linked characters of the users of their corporation, alliance or auth state. A link will appear on top of the main page of the app and will redirect to a page with a table of all the linked characters of the users of the selected corporation.A user can be audited by clicking on the link on theMain Charactercolumn.NEW: Users can now audit the apps they have access to. Select the app you want to audit from the dropdown menu in the audit page.InstallationInstall the app withpipinstallaa-charlinkAdd'charlink',to yourINSTALLED_APPSinlocal.pyRun migrationsCurrent appsI've opened anissueto track the current apps that are implemented in CharLink and the WIPs. If you want another app to be supported, please comment on the issue or reach me on theAllianceAuth discord server.SettingsNameDescriptionDefaultCHARLINK_IGNORE_APPSList of apps to ignore. Use the name of the app as it is called inINSTALLED_APPS[]PermissionsNameDescriptioncharlink.view_corpCan view linked character of members of their corporation.charlink.view_allianceCan view linked character of members of their alliance.charlink.view_stateCan view linked character of members of their auth state.Login page urlIf you want to setup a template override to link the "Add character" button to the login page of this package, set theaelement to:<ahref="{% url 'charlink:index' %}"class="btn btn-block btn-info"title="Add Character">{% translate 'Add Character' %}</a>Known issuesFor AFAT is not possible to check if the added character has a token which is still valid, it only checks if the character has ever added a token with the required scopes.
Package: aacommpy
AACommPy Package DocumentationAACommPy is a Python package that provides functionalities for working with the AAComm nuget package. AAComm is a nuget package used for communication with FPGA devices. AACommPy provides a Python wrapper for the AAComm nuget package, allowing you to use the nuget package's functionalities in your Python scripts.1.Installation
To install AACommPy, follow these steps:
Download the Python package for AACommPy by executing the following command:pip install aacommpyOnce the package is installed, you can access its functionalities from your Python scripts.Usage
To use AACommPy, you can import the necessary modules and call the available functions. Here's an example of how to use the package:
---------python------------
import clr
import os
path = os.path.join(os.path.dirname(file), 'AAComm.dll')
clr.AddReference(path)
from AAComm import Services
from AAComm import CommAPI
from AAComm import Shared
api = CommAPI()
status = CommAPI.StartAACommServer()
if status != "":
print(status)
else:Access the static variable IsAACommServerRunningis_running = CommAPI.IsAACommServerRunning
print(f"AACommServer is running: {is_running}")
cData = Services.ConnectionData()
cData.ControllerType = Shared.ProductTypes.AGM800_ID
cData.CommChannelType = Shared.ChannelType.Ethernet
cData.ET_IP_1 = 172
cData.ET_IP_2 = 1
cData.ET_IP_3 = 1
cData.ET_IP_4 = 101
cData.ET_Port = 5000
res = api.Connect(cData)
print(res)3.Available Commands
AACommPy provides several commands that can be executed through the command line using the installed package. These commands include:3.1.install: Downloads and installs the AAComm package. You can specify a version using the --version option.
the version number is the same with the AAComm nuget package version you want to use with you python script.
3.2.version: Retrieves the installed version of AAComm.
3.3.update: Updates the installed AAComm package to the latest version.
3.4.dotnetfw: Sets the .NET framework version of AAComm library. You can choose from the available options: net40, net46, net48, netcoreapp3.1, net5.0. The default version is net40.Example Usage
Here's an example of how to use the AACommPy package:Install the package:pip install aacommpy
#Run the command to download and install the AAComm package:aacommpy install
#Check the installed version of AAComm:aacommpy version
#Update the AAComm package to the latest version:aacommpy update
#Set the .NET framework version to be used by AAComm to net5.0:aacommpy dotnetfw --netfw net5.0
#Please note that the usage examples provided assume that you have the necessary permissions to install packages and run the commands.
Package: aa-corpstats-two
CorpStats 2.0Electric Boogaloo!Extended Corpstats module forAllianceAuthwith some extra features around corp member tracking, and auth utilization.Includes:Corp level viewsCorp Overview viewsMember Service activation statsMember TrackingLast Login and DurationLast known shipUpcoming:Member Location TrackingLast known location of membersBased on the hard work of:Ariel RinAdarnofActive Devs:AaronKableInstallationInstall the Repopip install aa-corpstats-twoAdd'corpstats',to yourINSTALLED_APPSin your projectslocal.pyrun migrations and restart authsetup your perms as documented belowPermissionsIf you are coming fromn the inbuilt module simply replace your perms fromcorputilswith the matchingcorpstatspermPermAdmin SiteAuth Sitecorpstats view_corp_corpstatsNoneCan view corp stats of their corporation.corpstats view_alliance_corpstatsNoneCan view corp stats of members of their alliance.corpstats view_state_corpstatsNoneCan view corp stats of members of their auth state.corpstats view_all_corpstatsNoneCan view all corp stats.corpstats add_corpstatCan create modelCan add new corpstats using an SSO token.corpstats change_corpstatCan edit modelNone.corpstats remove_corpstatCan delete modelNone.UsageIs very well documentedhereContributingMake sure you have signed theLicense Agreementby logging in athttps://developers.eveonline.combefore submitting any pull requests. All bug fixes or features must not include extra superfluous formatting changes.Changes1.1.0Added service activation informationModified alliance view to show all corpstats visible to a userupdated to django-esi >= 2.0.0FA 5 update1.0.4perms fixes
Package: aad
Azure AD B2CSimplified Python SDK for verifying AD B2C-issued JWTsUsageimportaadtoken="..."# JWT to verifytenant="..."# B2C tenant (as in `"{tenant}.b2clogin.com/{tenant}..."`)app_id="..."# ClientID of app registered in the B2C tenantpolicy="B2C_1_..."# policy (aka user flow) nameawaitaad.authorize(token,tenant,app_id,policy)# {#   "idp": "...",#   "aud": "...",#   ... # other JWT fields#   ... # fields configured in B2C# }FastAPI dependencypipinstallaad[fastapi]fromfastapiimportFastAPIimportaadClaims=aad.claims(tenant,app_id,policy)app=FastAPI()@app.get("...")defget(claims:Claims):...DisclaimerHeavily inspired byazure-ad-verify-token, but with an async interface
Package: aadbook
aadbook– access your Azure AD contacts from the command line.AboutAADBook is a fork ofGooBookfocusing on
making it possible to use your Azure AD contacts from the command-line and from
MUAs such as Mutt.Installation InstructionsThere is a number of ways to install Python software.Using pipUsing a source tarballUsing source directly from gitoriusFrom a distribution specific repositorypip or easy_installThis is the recommended way to installaadbookfor most users that don’t
have it available in their distribution.  When installing this way you will not
need to download anything manually.Install like this:pip install aadbookSource installationDownload the source tarball, uncompress it, then run the install command:tar -xzvf aadbook-*.tar.gz
cd aadbook-*
sudo python ./setup.py installConfigureFor most users it will be enough to to run:aadbook authenticateand follow the instructions.To get access too more settings you can create a configuration file:aadbook config-template > ~/.aadbookkrcIt will look like this:# "#" or ";" at the start of a line makes it a comment.
[DEFAULT]
# The following are optional, defaults are shown

# This file is written by the Azure AD library, and should be kept secure,
# it's like a password to your AD contacts.
;auth_db_filename: ~/.aadbook_auth.json

;cache_filename: ~/.aadbook_cache
;cache_expiry_hours: 24Proxy settingsIf you use a proxy you need to set thehttps_proxyenvironment variable.MuttIf you want to useaadbookfrom mutt.Set in your .muttrc file:set query_command="aadbook query '%s'"to query address book.UsageTo query your contacts:aadbook query QUERYThe cache is updated automatically according to the configuration but you can also force an update:aadbook reloadFor more commands see:aadbook -hand:aadbook COMMAND -hChangelog0.2.0 (2019-09-22)Adds Python3 support (and removes support for Python2)0.1.3 (2019-05-01)Updates dependencies0.1.2 (2018-11-01)Switches torequests==2.20.00.1.1 (2018-10-21)Fixes a bug where an exception thrown at startup when automatically
refreshing auth tokens could make theauthenticatecommand fail, leaving
the user with no option other than wiping outaadbookcaches0.1.0 (2018-10-09)Implements automatic fuzzy finding by replacing each `` `` in the search query
string with.*0.0.3 (2018-10-01):Fixes a bug where internal credentials were not properly updated after
tokens were updated using the refreshToken – throwing an error on the firstaadbook query …invocation0.0.2 (2018-09-16):Theauthenticatecommand now always initiates a full authentication
workflow, irrespective of any cached tokenStart up time has improved thanks the the internal token now being refreshed
only when expired0.0.1 (2018-09-08):Project inception
Package: aadhaar-py
aadhaar-py 🐍This library helps you extract the embedded information 💾 in Aadhaar Secure QR CodeInspired from 😇I would like to thank the authors ofpyaadhaar. It wouldn't be possible to move into the right direction without this library.Demo ✔️Secure Aadhaar QR DecoderEnough talk, show me how it works! ✨>>>fromaadhaar.secure_qrimportextract_data>>>received_qr_code_data=12345678>>>extracted_data=extract_data(received_qr_code_data)Theextract_datafunction returns an instance ofExtractedSecureQRDatawhich has the definition of:@dataclass(frozen=True)classExtractedSecureQRData:text_data:ExtractedTextDataimage:Image.Imagecontact_info:ContactDataText Data 📝:>>>extracted_data.text_dataExtractedTextData(reference_id=ReferenceId(last_four_aadhaar_digits='8908',timestamp=datetime.datetime(2019,3,5,15,1,37,123000)),name='Penumarthi Venkat',date_of_birth=datetime.date(1987,5,7),gender=<Gender.MALE:'Male'>,address=Address(care_of='S/O: Pattabhi Rama Rao',district='East Godavari',landmark='Near Siva Temple',house='4-83',location='Sctor-2',pin_code='533016',post_office='Aratlakatta',state='Andhra Pradesh',street='Main Road',sub_district='Karapa',vtc='Aratlakatta'))The Embedded Image 🌆:>>>extracted_data.image<PIL.JpegImagePlugin.JpegImageFileimagemode=RGBsize=60x60at0x1029CA460>The Contact Information 📧:>>>extracted_data.contact_infoContactData(email=Email(hex_string=None,fourth_aadhaar_digit='8'),mobile=Mobile(hex_string='1f31f19afc2bacbd8afb84526ae4da184a2727e8c2b1b6b9a81e4dc6b74d692a',fourth_aadhaar_digit='8'))But hey! 🙄 I want to send this data via a ReSTful API, don't you have something to serialize that ugly instance ofExtractedSecureQRData? 😩to_dictmethod to the rescue 💪>>>extracted_data.to_dict(){"text_data":{"reference_id":{"last_four_aadhaar_digits":"8908","timestamp":"2019-03-05T15:01:37.123000"},"name":"Penumarthi Venkat","date_of_birth":"1987-05-07","gender":"Male","address":{"care_of":"S/O: Pattabhi Rama Rao","district":"East Godavari","landmark":"Near Siva Temple","house":"4-83","location":"Sctor-2","pin_code":"533016","post_office":"Aratlakatta","state":"Andhra Pradesh","street":"Main Road","sub_district":"Karapa","vtc":"Aratlakatta"}},"image":"data:image/jpeg;base64,/9j/4AAQSkZblahblah","contact_info":{"email":{"hex_string":None},"mobile":{"hex_string":"1f31f19afc2bacbd8afb84526ae4da184a2727e8c2b1b6b9a81e4dc6b74d692a"}}}Run Tests 🧪python-munittestdiscovertests/--verbose
Package: aadhar-pan-extractor
Description: This script extracts Aadhaar and extracts Pan information from the image uploaded by consumer. The result is returned
as a json object.Installation
This library requires Python 3.6+ to run. As well as you also need to install tesseract on your system. If you have Linux based system just run:use this line for Linux
sudo apt install tesseract-ocrfor windows usedownload tesseract software'https://github.com/UB-Mannheim/tesseract/wiki'Then
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract'For Mac OSinstall brew/bin/bash -c "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"#install brew in tesseractbrew install tesseract#list tesseractbrew list tesseractthis is list-->/usr/local/Cellar/tesseract/4.1.1/bin/tesseract/usr/local/Cellar/tesseract/4.1.1/bin/tesseract this line use for code
pytesseract.pytesseract.tesseract_cmd = r'/usr/local/Cellar/tesseract/4.1.1/bin/tesseract'Install the package.pip install aadhar-pan-extractor
Then Import the package.from aadhar_pan_extractor import Pan_Info_Extractor,Aadhar_Info_Extractor
Create an instance of the extractor.this line use only for aadhar information
extractor = Aadhar_Info_Extractor()this line use only for pan information
extractor = Pan_Info_Extractor()
Pass the image to the extractor to get the results.extractor.info_extractor('/content/pan test.jpeg')
This will return a result as following:{
"Aadhar_number": "4382 5165 5729",
"Address": "NAN",
"DOB": "01/01/2003",
"Gender": "Male",
}
Package: aadict
Anaadictis a python dict sub-class that allows attribute-style
access to dict items, e.g.d.foois equivalent tod['foo'].aadictalso provides a few other helpful methods, such aspickandomitmethods. Also, anaadictis more call chaining
friendly (e.g. methods such asupdatereturnself) and is
pickle’able.ProjectHomepage:https://github.com/metagriffin/aadictBugs:https://github.com/metagriffin/aadict/issuesTL;DRInstall:$pipinstallaadictUse:fromaadictimportaadict# attribute accessd=aadict(foo='bar',zig=87)assertd.foo==d['foo']=='bar'# helper methodsassertd.pick('foo')=={'foo':'bar'}assertd.omit('foo')=={'zig':87}# method chainingd2=aadict(x='y').update(d).omit('zig')assertd2.x=='y'andd2.foo=='bar'andd2.zigisNone# converting a dict to an aadict recursivelyd3=aadict.d2ar(dict(foo=dict(bar='zig')))assertd3.foo.bar=='zig'DetailsThe aadict module provides the following functionality:aadictAnaadictobject is basically identical to adictobject, with the
exception that attributes, if not reserved for other purposes, map to
the dict’s items. For example, if a dictdhas an item'foo',
then a request ford.foowill return that item lookup. aadicts
also have several helper methods, for exampleaadict.pick. To
fetch the value of an item that has the same name as one of the helper
methods you need to reference it by item lookup,
i.e.d['pick']. The helper methods are:aadict.pickinstance method:Returns a new aadict, reduced to only include the specified
keys. Example:d=aadict(foo='bar',zig=87,zag=['a','b'])assertd.pick('foo','zag')=={'foo':'bar','zag':['a','b']}aadict.omitinstance method:Identical to theaadict.pickmethod, but returns the complement,
i.e. all of those keys that arenotspecified. Example:d=aadict(foo='bar',zig=87,zag=['a','b'])assertd.omit('foo','zag')=={'zig':87}aadict.d2arclass method:Recursively converts the supplieddictto anaadict, including
all sub-list and sub-dict types. Due to being recursive, but only
copying dict-types, this is effectively a hybrid of a shallow and
a deep clone. Example:d=aadict.d2ar(dict(foo=dict(bar='zig')))assertd.foo.bar=='zig'Without the recursive walking, the.barattribute syntax
would yield an AttributeError exception because d.foo would
reference adicttype, not anaadict.aadict.d2aclass method:Converts the supplieddictto anaadict. Example:d=aadict.d2a(dict(foo='bar'))assertd.foo==d['foo']=='bar'Note that this is identical to just using the constructor,
but is provided as a symmetry to theaadict.d2arclass
method, e.g.:d=aadict(dict(foo='bar'))assertd.foo==d['foo']=='bar'