Saravanan666/pypi-org huggingface dataset:
Package: python3-spi
python3-spiPython 3.x interface for SPI communications using Linux spidevThis is a fork ofhttps://github.com/tomstokes/python-spiwhich seems to be abandoned with the python 3 compatibility patch proposed by Tom Egan applied.FeaturesPure Python implementation. No C module to compile.Supports half-duplex reads and writes as well as full-duplex transfers.Exposes all available spidev interface options as properties.Requirementsspidev enabled in the kernel and (if necessary) the device tree.Write permissions to the /dev/spidevN.N device.Some distributions have an 'spi' group for this purpose. If available, add this group to the user account and ensure the spidev device is group-writeable.If no 'spi' group exists, a udev rule can be created to set the permissions of the spidev device.As a last resort, running the python script as root should allow access to the spidev.NoteThis is not recommended. Use the 'spi' group or udev rules whenever possible.Exampleimportspispi=SPI("/dev/spidev1.0")spi.mode=SPI.MODE_0spi.bits_per_word=8spi.speed=500000received=spi.transfer([0x11,0x22,0xFF])spi.write([0x12,0x34,0xAB,0xCD])received=spi.read(10)
Package: python3-utilities
Python3 UtilitiesProject Homepage:https://github.com/ohidurbappy/python3-utilitiesAn utility library for python3 that saves time by avoiding to write repetitive codes.UsageHow to buildUpdate Setuptools and wheelpython3-mpipinstall--user--upgradesetuptoolswheelNow run this command from the same directory where setup.py is located:python3setup.pysdistbdist_wheelThis command should output a lot of text and once completed should generate two files in the dist directory:dist/
  example_pkg_YOUR_USERNAME_HERE-0.0.1-py3-none-any.whl
  example_pkg_YOUR_USERNAME_HERE-0.0.1.tar.gzFor updatingSee Here
Package: python3-utils
python3-utilsThis repository contains a useful collection of python3 utilities.InstallationTo install the latest release, type:pip install python3-utilsTo install the latest code directly from source, type:pip install git+git://github.com/micahhausler/python3-utils.gitDocumentationFull documentation is available athttp://python3-utils.readthedocs.orgLicenseMIT License (see LICENSE)
Package: python3-utils-tdinoto
Python UtilsThis repository contains wrapper functions and code snippets for the most common python dtypes. Truth is I'm tired of searching on Stack Overflow the same problems over and over again, so I am just gathering them here :)Installationpython_utils_tdinoto is OS independent and compatible with Python >= 3.7.
To install it, ensure you have python installed and then run:python3-mpipinstallpython3_utils_tdinotoExample usage>>>fromutils_tdinoto.utils_listsimportfind_common_elements>>>list_1=[1,2,3]>>>list_2=[3,4,5]>>>find_common_elements(list_1,list_2)[3]>>>fromutils_tdinoto.utils_stringsimportkeep_only_digits>>>s='ses-20221026'>>>keep_only_digits(s)'20221046'
Package: python3-vote-core
python-vote-core implements various electoral methods, providing the
results calculated off a provided set of ballots and options.This
fork implements only Python3 compatibility!Project page:http://github.com/the-maldridge/python-vote-coreIssue tracker:http://github.com/the-maldridge/python-vote-core/issuesPython3This fork implements Python3 functionality by using 2to3 and then
cherry-picking fixes from other people’s forks.  This is certainly not
a clean way to do so but 100% of the tests pass on Python3.This fork exists solely to have a PyPI release under Python3.Methods implementedSingle Winner MethodsPlurality (aka first-past-the-post or fptp)Instant-Runoff Voting (aka IRV)Schulze Method (aka Beatpath)Multiple Winner MethodsPlurality at large (aka block voting)Single Transferable Vote (aka STV)Schulze STVOrdering MethodsSchulze Proportional RepresentationSchulze Nonproportional RepresentationBasic UsageSchulze method example:>>> from pyvotecore.schulze_method import SchulzeMethod
>>> from pyvotecore.condorcet import CondorcetHelper
>>> ballots = [
...   { "count":3, "ballot":[["A"], ["C"], ["D"], ["B"]] },
...   { "count":9, "ballot":[["B"], ["A"], ["C"], ["D"]] },
...   { "count":8, "ballot":[["C"], ["D"], ["A"], ["B"]] },
...   { "count":5, "ballot":[["D"], ["A"], ["B"], ["C"]] },
...   { "count":5, "ballot":[["D"], ["B"], ["C"], ["A"]] }
... ]
>>> SchulzeMethod(ballots, ballot_notation = CondorcetHelper.BALLOT_NOTATION_GROUPING).as_dict()
{'actions': [{'edges': {('A', 'B')}},
  {'edges': {('A', 'C')}},
  {'nodes': {'A'}},
  {'edges': {('B', 'C')}},
  {'nodes': {'B', 'D'}}],
 'candidates': {'A', 'B', 'C', 'D'},
 'pairs': {('A', 'B'): 16,
  ('A', 'C'): 17,
  ('A', 'D'): 12,
  ('B', 'A'): 14,
  ('B', 'C'): 19,
  ('B', 'D'): 9,
  ('C', 'A'): 13,
  ('C', 'B'): 11,
  ('C', 'D'): 20,
  ('D', 'A'): 18,
  ('D', 'B'): 21,
  ('D', 'C'): 10},
 'strong_pairs': {('A', 'B'): 16,
  ('A', 'C'): 17,
  ('B', 'C'): 19,
  ('C', 'D'): 20,
  ('D', 'A'): 18,
  ('D', 'B'): 21},
 'winner': 'C'}20110509.1
—Fixing PyPi release20110509.0
—Initial PyPi releaseLicenseCopyright (C) 2009, Brad BeattieThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttp://www.gnu.org/licenses.
Package: python3-Wappalyzer
Python3-WappalyzerPython3 driver for Wappalyzer, a web application detection utility.Use code fromhttps://github.com/chorsley/python-Wappalyzer, make it suitable for python3.Usage>>> from Wappalyzer import WebPage
>>> WebPage("https://github.com").info()
{'apps': 'Twitter Bootstrap', 'title': "The world's leading software development platform · GitHub"}
Package: python3-wget
# python3-wgetInstallation============With pip========sudo pip3 install python3-wgetFrom source===========python3 setup.py installUsage=====python -m wget [options] <URL>options:-o --output FILE|DIR   output filename or directoryUse within a project/package============================See my download repo on github that utilses this modulehttps://github.com/jamiejackherer/downloadAPI Usage=========>>> import wget>>> url = 'http://www.futurecrew.com/skaven/song_files/mp3/razorback.mp3'>>> filename = wget.download(url)70% [###################################               ]            75M / 107M>> filename'razorback.mp3'Alternative progress bar:>>> wget.download(url, bar=bar_thermometer)TODO - I will do these by version 0.1.0====* Implement a way to resume downloads.* Add options to be more like the *nix wget utility.* Implement download speed.ChangeLog - (For this current version - now maintained by JamieJackHerer)=========0.0.2-beta1* Now uses human readable sizes r.e. it displays size in K/M/G/P (kilobytes/megabytes/gigabytes/petabytes)* Progress bar uses '[####  ]' format instead of '[....   ]'* Reformatted for Python 3.x* Included 'hurry.filesize' as a dependency in setup.pyJamie Lindsey AKA JamieJackHerer <jackherer026@gmail.com>+========================================================================+|********* Anything below this message has nothing to do with me ********||********* but it is still implemented in the new versions **************||********* any changes made will now be noted above *********************|+========================================================================+ChangeLog - (For original package which seems to no longer be in development)=========2.2 (2014-07-19)* it again can download without -o option2.1 (2014-07-10)* it shows command line help* -o option allows to select output file/directory* download(url, out, bar) contains out parameter2.0 (2013-04-26)* it shows percentage* it has usage examples* it changes if being used as a library* download shows progress bar by default* bar_adaptive gets improved algorithm* download(url, bar) contains bar parameter* bar(current, total)* progress_callback is named callback_progress1.0 (2012-11-13)* it runs with Python 30.9 (2012-11-13)* it renames file if it already exists* it can be used as a library* download(url) returns filename* bar_adaptive() draws progress bar* bar_thermometer() simplified bar0.8 (2011-05-03)* it detects filename from HTTP headers0.7 (2011-03-01)* compatibility fix for Python 2.5* limit width of progress bar to 100 chars0.6 (2010-04-24)* it detects console width on POSIX0.5 (2010-04-23)* it detects console width on Windows0.4 (2010-04-15)* it shows cute progress bar0.3 (2010-04-05)* it creates temp file in current dir0.2 (2010-02-16)* it tries to detect filename from URL0.1 (2010-02-04)* it can download fileRelease Checklist=================| [ ] update version in wget.py| [x] update description in setup.py| [ ] python setup.py check -mrs| [ ] python setup.py sdist upload| [ ] tag hg version--anatoly techtonik <techtonik@gmail.com>
Package: python-42
DescriptionThis decorator comes to the aid of developers in search of an answer.
Yet, sometimes the answer seems meaningless because the beings who
instructed it never actually knew what the Question was. So, in this case,
this decorator returns the answer to the Ultimate Question of Life, the
Universe and Everything.Installation$ pip install python-42Usagefrom_42import_42@_42deffunction(...):"""Whatever."""...
Package: python4gnokii
python4gnokii is a Python bindings for theGnokiiproject.DependenciesTo build and make the Python module work, you need the following
elements :libgnokii and its headersThesetuptoolspackageOn Fedorayum install gnokii gnokii-devel python-setuptoolsOn Debianaptitude install gnokii-cli libgnokii-dev python-setuptoolsInstallationWith pip (recommanded)pip install python4gnokiiFrom sourcesgit clone git@github.com:SkypLabs/python4gnokii.git
cd python4gnokii
python setup.py installHow toThe best way to learn how it works is to look at the examples available
in theexamplesfolder.LicenseGPL version 3
Package: python4kyoani
Pythonで、京都アニメーションにお返しするプロジェクト機能 (Features)任意の画像から PrayForKyoani と文字を入れた画像を新たに作成しますインストール方法 (Installation)$pipinstallpython4kyoani使い方 (Usage)$py4ka./candle.jpg$openpray_candle.jpgこのプロジェクトって何よ？ (About this project)2019/07/18 京都アニメーションに放火事件という悲劇が起きました。プロジェクト発案者nikkieは、京都アニメーションの大ファンのPython使いです。京都アニメーションの作品に、ときに奮い立たされ、ときに癒やされ、エンジニアとして前に進んできました。Python使いとしての今があるのは、京都アニメーションからいただいたもののおかげでもあると思っています。この事件で辛いのは、自分が心から大切にしている存在が傷つけられたことです。時間が経つにつれて、優秀なアニメーターの方々を失ったことが分かり、悲しみが重なっていきます。それでも、前を向く時間を増やすという選択をしたくて、私ができることで京都アニメーションへの祈りをなんとかして表現したいと思いました。私ができること＝Pythonで京都アニメーションからいただいたものへのお返しを試みていきます（今後も機能を追加します）。このプロジェクトで、悲しみに沈む京アニファンを一人でも、ほんの少しの時間でも、前を向くお手伝いができたら、それ以上に嬉しいことはありません。Python for Kyoani.開発に参加したい方へ (Development)$gitclonegit@github.com:ftnext/python4kyoani.gitpython4kyoani$cdpython4kyoani$pipinstall-e.[dev]
Package: python4yahdlc
python4yahdlc is a Python binding of theyahdlclibrary, allowing to encode and
decodeHDLCframes.DependenciesThis software requires Python 3.InstallationFrom PyPI (recommended)pipinstall--upgradepython4yahdlcFrom sourcesgitclonehttps://github.com/SkypLabs/python4yahdlc.gitcdpython4yahdlcgitsubmoduleupdate--init--recursivepipinstall--upgrade.UsageTo generate a new HDLC data frame:fromyahdlcimport*frame=frame_data('hello world!')To generate a new HDLCACKframe with a specific sequence number:frame=frame_data('',FRAME_ACK,3)The highest sequence number is 7 and the following frame types are available:FRAME_DATAFRAME_ACKFRAME_NACKNote that when you generate anACKorNACKframe, the payload is
useless.To decode a received HDLC frame:data,ftype,seq_no=get_data(frame)For a more advanced use, take a look at the examples available in theexamplesfolder.DevelopmentTo set up a development environment on your local machine:# Clone the Git repository and initialise its sub-modules.gitclonehttps://github.com/SkypLabs/python4yahdlc.gitcdpython4yahdlcgitsubmoduleupdate--init--recursive# Create a virtual environment and activate it.python-mvenv.venvsource.venv/bin/activate# Make sure to have the latest versions of pip and setuptools.pipinstall--upgradepipsetuptools# Install python4yahdlc in editable mode with all its optional
# dependencies.pipinstall-e.[examples,tests]LicenseThis project is released under theGPL version 3license. Theyahdlclibrary is released under theMITlicense.
Package: python-a11y-playwright
Accessibility Automation for Web Apps with Python andPlaywright.This project usesHTML CodeSnifferandDeque AxeHTML CodeSniffer: checks HTML source code and detects any Accessibility violations. Comes with standards that cover
the three (A, AA & AAA) conformance levels of the W3C's Web Content Accessibility Guidelines (WCAG) 2.1 and the U.S.
Section 508 legislation.Deque Axe: World’s leading digital accessibility toolkit. Powerful and accurate accessibility toolkit can get you
to 80% issue coverage, or more, during development.FeaturesSimple & Easy to useNo need of prior knowledge on AccessibilityWorks with PythonPlaywrightRich ReportingOpen sourceInstallationFor maven based project add the below dependencypip install python-a11y-playwrightGetting StartedUsing HTML CodeSnifferBelow is the example usage using HTML CodeSniffer.frompathlibimportPathfromautomateda11y.pw.settingsimportSettingsfromplaywright.sync_apiimportsync_playwrightfromautomateda11y.pw.htmlcsrunnerimportHtmlCsRunnerdefjson_reports_dir():returnPath(__file__).parent.parent.__str__()withsync_playwright()asp:Settings.report_dir=json_reports_dir()+'/reports'browser=p.chromium.launch(headless=False)page=browser.new_page()page.goto("http://playwright.dev")data=HtmlCsRunner(page).execute()browser.close()Using Deque AxeBelow is the example usage using Deque Axe.frompathlibimportPathfromautomateda11y.pw.settingsimportSettingsfromplaywright.sync_apiimportsync_playwrightfromautomateda11y.pw.axerunnerimportAxeRunnerdefjson_reports_dir():returnPath(__file__).parent.parent.__str__()withsync_playwright()asp:Settings.report_dir=json_reports_dir()+'/reports'browser=p.chromium.launch(headless=False)page=browser.new_page()page.goto("http://playwright.dev")data=AxeRunner(page).execute()browser.close()
Package: python-abckpi
python-abckpiDescription: python-abckpi is a library that wraps the ABCKPI REST API to allow a streamlined access to the API main functionalities
such as querying the list of indicators, retrieving data points and setting values of data pointsTechnology stack: Python 3, requests, pandas (optional)Status:  Beta (0.1.0). The basic functionalities (in particular retrieving and setting data) are available.Dependenciespython-abckpi depends mainly on Python 3 (currently tested on Python 3.8) and requests. A detailed set of dependencies
is available inrequirements.txtInstallationDetailed installation instructions available atINSTALL.UsageTo use python-abckpi, you need to the supply the credentials of an ABCKPI account to create an Instance object. The
functionalities are then available as methods of the Instance object :fromabckpi.coreimportInstanceinstance=Instance(username=username,password=password)indicators=instance.get_indicators()The results returned as lists of dictionnaries or as Pandas objects if the pandas dependency is installed.DocumentationA complete documentation as well as examples in Jupyter Notebook format are available atDocumentation.Getting helpIf you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.Open source licensing infoLICENSEMain contributors :Seddik Yassine Abdelouadoud
Package: pythonabm
PythonABMPythonABM makes complex agent-based modeling (ABM) simulations in Python accessible by providing an efficient base framework
for constructing ABMs. More information on PythonABM can be found below.Documentation:pythonabm.readthedocs.ioPyPI:pypi.org/project/pythonabmInstallationAssuming you have Python 3.7-3.10, the latest version of the PythonABM library can be installed using the following command.pip install pythonabmPythonABM can also be built fromsourceonce downloaded from GitHub.python setup.py installRunning a simulationCalling the start() method in the Simulation class will launch the ABM platform and run it as follows.
(See theexample.pyscript as a template for building a simulation.) A
text-based UI will prompt for anameof the simulation and a correspondingmode(described below).0: New simulation1: Continue a previous simulation2: Convert a previous simulation’s images to a video3: Archive (ZIP) a previous simulation’s outputsTo avoid the text-based UI, the name and mode can be passed at the
command line by using flags (without the parentheses). Note: the
simulation file does not have to be named “main.py”.python main.py -n (name) -m (mode)When continuing a previous simulation (mode=1), the ABM will prompt for
the updated end-step number, though this can be passed like above.python main.py -n (name) -m (mode) -es (end-step)NVIDIA CUDA supportFor GPU parallelization, PythonABM requires a CUDA compatible GPU and NVIDIA’s
CUDA toolkit. If you don’t have the toolkit, download the
toolkit either directly from NVIDIAhereor withAnaconda'sconda
command show below.conda install cudatoolkit
Package: python-abspath
python-abspathpython-abspath provides a command line tool that prints the absolute paths of all given files. File names can be piped via STDIN or given as arguments. Work for both Windows and Linux.Installpipinstallpython-abspathInstalled Command Line ToolsabspathUsageC:\Code\python-abspath>abspath--help
Usage:abspath.py[OPTIONS][PATH]...

Options:-q,--with-quotes--helpShowthismessageandexit.ExampleExample 1:Show the absolute path of requirements.txt. requirements.txt is given as a parameter.C:\Code\python-abspath>abspathrequirements.txt
C:\Code\python-abspath\requirements.txtExample 2:Show the absolute path of a.txt and b.txt. a.txt and b.txt are given as parameters.C:\Code\python-abspath>abspatha.txtb.txt
C:\Code\python-abspath\a.txt
C:\Code\python-abspath\b.txtExample 3:Filename or filenames can be piped via STDIN.C:\Code\python-abspath>echoa.txt|abspath
C:\Code\python-abspath\a.txt

C:\Code\python-abspath>typefilenames.txt
a.txt
b.txt
c.txt

C:\Code\python-abspath>typefilenames.txt|abspath
C:\Code\python-abspath\a.txt
C:\Code\python-abspath\b.txt
C:\Code\python-abspath\c.txtExample 4:In window the filename seperator is "\", so you can NOT just copy the output and paste as a const value to your code. You have to add -q option, so that the output will be quoted and you can use it in you code.C:\Code\python-abspath>abspath-qrequirements.txt"C:\\Code\\python-abspath\\requirements.txt"Releasesv0.1.1 2020/10/27Add license file in release package.v0.1.0 2020/04/09First release.
Package: python-acache
acache: async cacheA implementation oflru_cacheandttl_cacheforasyncio.Install# from pip
pip3 install --user python-acache

# from github
pip3 install git+https://github.com/Dimfred/acache.gitAlternativesasync-cacheThe difference in my package is that if you call a function with the same args, from different threads the second one will not return a value until the first one is completed, s.t. the value gets definitely cached.
Additionally, I allow overwriting the key generation function, so you can pick your own.
Also my naming is different, and maybe more pythonic (whatever).Usagefromacacheimportalru_cache,attl_cache# basic lru@alru_cache(maxsize=2)asyncdefi_am_cached(foo):returnfoo# use with custom key function@alru_cache(maxsize=2,make_key=lambdax:type(x))asyncdefi_cache_based_on_the_input_type(foo)returnfooclassA:passres1=awaiti_cache_based_on_the_input_type(A())res2=awaiti_cache_based_on_the_input_type(A())assertid(res1)==id(res2)# TRUE# time cache@attl_cache(seconds=1)asyncdefcached_for_1_s(bar):returnbarres1=awaitcached_for_1_s(1)res2=awaitcached_for_1_s(2)assertres1==res2# wait 1 secondres3=awaitcached_for_1_s(3)assertres1!=res3# key function also applies to the attl_cacheSynopsisdefalru_cache(maxsize:int=128,make_key=None):...defattl_cache(weeks=0,days=0,hours=0,minutes=0,seconds=0,milliseconds=0,microseconds=0,maxsize=128,make_key=None,):...
Package: python-acapela
Author:Arezqui BelaidDescription:Python wrapper for text-to-speech synthesis with AcapelaCompany:Developed by Star2Billinghttp://www.star2billing.comPython Acapela Wrapperpython-acapela is a library to produce a text-to-speech file usingAcapelaweb services.Quickstartimport acapela

ACCOUNT_LOGIN = 'EVAL_XXXX'
APPLICATION_LOGIN = 'EVAL_XXXXXXX'
APPLICATION_PASSWORD = 'XXXXXXXX'
SERVICE_URL = 'http://vaas.acapela-group.com/Services/Synthesizer'

tts_acapela = acapela.Acapela(ACCOUNT_LOGIN, APPLICATION_LOGIN, APPLICATION_PASSWORD, SERVICE_URL, '22k', '/tmp/')
tts_acapela.prepare(text=u"Hola! Buenos días", lang='ES', gender='W', intonation='NORMAL')
output_filename = tts_acapela.run()

print "Recorded TTS to %s" % output_filenameFeaturesProduce text to speech in different languages, see list of languages supported :http://www.acapela-vaas.com/ReleasedDocumentation/voices_list.phpSupport different type of audio quality 22Hz, 8HzProvide voices of different gender and intonationInstallationInstall, upgrade and uninstall python-acapela.py with these commands:$ sudo pip install python-acapela
$ sudo pip install --upgrade python-acapela
$ sudo pip uninstall python-acapelaOr if you don’t havepip:$ sudo easy_install python-acapelaExample usage and output$ Usage: python-acapela -acclogin <accountlogin> -applogin <applicationlogin> -p <password> -t <text> [-q <quality>] [-d <directory>] [-url <service_url>] [-h]

$ Output : Recorded TTS to /tmp/ACAPELA-8895934760117809679-ES.mp3FeedbackYour feedback is more than welcome. Write email toareski@gmail.comor post bugs and feature requests on github:http://github.com/areski/python-acapela/issuesExtra informationNewfies-Dialer, an open source Auto Dialer software, uses this module to synthetize audio files being play to the end-user.
Further information about Newfies-Dialer can be found athttp://www.newfies-dialer.orgThis module is built and supported by Star2Billing :http://www.star2billing.comSimilar library in Ruby :https://github.com/mheld/acapela-rubySource downloadThe source code is currently available on github. Fork away!http://github.com/areski/python-acapelaHistory0.2.4 (2015-04-15)Fix UK language0.2.3 (2015-04-15)Fix US language0.2.1 (2012-10-03)Add License file, Manifest, Authors0.2 (2012-10-03)Improve setup.py, credits tohttps://github.com/jezdez/django_compressor/blob/develop/setup.pyPEP8 Fixes0.1 (2012-05-26)First release.
Package: python-accessor
Accessor: read nested dictionariesBuild accessor functions using the natural python dot notation.Installationpython-accessoris available as a zero-dependency Python package. Install with:$ pip install python-accessorUsagefromaccessorimportaccessoras_name=_.users.namename(obj)# equvalent of obj['users']['name']Examplesfromaccessorimportaccessoras_obj={'users':[{'uid':1234,'name':{'first':'John','last':'Smith',}},{'uid':2345,'name':{'last':'Bono'}},{'uid':3456}]}_.users[1].name(obj)# -> {'last': 'Bono'}_.users.name.last(obj)# -> ['Smith', 'Bono', None]_.users.name.first(obj)# -> ['John', None, None]_.users.name.first[:1](obj)# -> ['John']_.users.uid[:2](obj)# -> [1234, 2345]list(map(_.name.last,obj['users']))# -> ['Smith', 'Bono', None]list(filter(_.uid>300,obj['users']))# -> [{'uid': 3456}]More Examples! :)fromaccessorimportaccessoras_,select,values# extract valueslist(map(values(_.name.first,_.name.last),obj['users']))# -> [('John', 'Smith'), (None, 'Bono'), (None, None)]# extract as dictslist(map(select(_.name.first,_.name.last),obj['users']))# -> [{'first': 'John', 'last': 'Smith'}, {'first': None, 'last': 'Bono'}, {'first': None, 'last': None}]# extract and optionally renamelist(map(select(_.name.uid,x=_.name.last),obj['users']))# -> [{'uid': '1234', 'x': 'Smith'}, {'uid': 2345, 'x': 'Bono'}, {'uid': 3456, 'x': None}]