Skip to main content

Persistent/Functional/Immutable data structures

Project description

https://github.com/tobgu/pyrsistent/actions/workflows/tests.yaml/badge.svg

Pyrsistent is a number of persistent collections (by some referred to as functional data structures). Persistent in the sense that they are immutable.

All methods on a data structure that would normally mutate it instead return a new copy of the structure containing the requested updates. The original structure is left untouched.

This will simplify the reasoning about what a program does since no hidden side effects ever can take place to these data structures. You can rest assured that the object you hold a reference to will remain the same throughout its lifetime and need not worry that somewhere five stack levels below you in the darkest corner of your application someone has decided to remove that element that you expected to be there.

Pyrsistent is influenced by persistent data structures such as those found in the standard library of Clojure. The data structures are designed to share common elements through path copying. It aims at taking these concepts and make them as pythonic as possible so that they can be easily integrated into any python program without hassle.

If you want use literal syntax to define them in your code rather than function calls check out Pyrthon. Be aware, that one is experimental, unmaintained and alpha software.

Examples

The collection types and key features currently implemented are:

  • PVector, similar to a python list

  • PMap, similar to dict

  • PSet, similar to set

  • PRecord, a PMap on steroids with fixed fields, optional type and invariant checking and much more

  • PClass, a Python class fixed fields, optional type and invariant checking and much more

  • Checked collections, PVector, PMap and PSet with optional type and invariance checks and more

  • PBag, similar to collections.Counter

  • PList, a classic singly linked list

  • PDeque, similar to collections.deque

  • Immutable object type (immutable) built on the named tuple

  • freeze and thaw functions to convert between pythons standard collections and pyrsistent collections.

  • Flexible transformations of arbitrarily complex structures built from PMaps and PVectors.

Below are examples of common usage patterns for some of the structures and features. More information and full documentation for all data structures is available in the documentation.

PVector

With full support for the Sequence protocol PVector is meant as a drop in replacement to the built in list from a readers point of view. Write operations of course differ since no in place mutation is done but naming should be in line with corresponding operations on the built in list.

Support for the Hashable protocol also means that it can be used as key in Mappings.

Appends are amortized O(1). Random access and insert is log32(n) where n is the size of the vector.

>>> from pyrsistent import v, pvector

# No mutation of vectors once created, instead they
# are "evolved" leaving the original untouched
>>> v1 = v(1, 2, 3)
>>> v2 = v1.append(4)
>>> v3 = v2.set(1, 5)
>>> v1
pvector([1, 2, 3])
>>> v2
pvector([1, 2, 3, 4])
>>> v3
pvector([1, 5, 3, 4])

# Random access and slicing
>>> v3[1]
5
>>> v3[1:3]
pvector([5, 3])

# Iteration
>>> list(x + 1 for x in v3)
[2, 6, 4, 5]
>>> pvector(2 * x for x in range(3))
pvector([0, 2, 4])

PMap

With full support for the Mapping protocol PMap is meant as a drop in replacement to the built in dict from a readers point of view. Support for the Hashable protocol also means that it can be used as key in other Mappings.

Random access and insert is log32(n) where n is the size of the map.

>>> from pyrsistent import m, pmap, v

# No mutation of maps once created, instead they are
# "evolved" leaving the original untouched
>>> m1 = m(a=1, b=2)
>>> m2 = m1.set('c', 3)
>>> m3 = m2.set('a', 5)
>>> m1
pmap({'a': 1, 'b': 2})
>>> m2
pmap({'a': 1, 'c': 3, 'b': 2})
>>> m3
pmap({'a': 5, 'c': 3, 'b': 2})
>>> m3['a']
5

# Evolution of nested persistent structures
>>> m4 = m(a=5, b=6, c=v(1, 2))
>>> m4.transform(('c', 1), 17)
pmap({'a': 5, 'c': pvector([1, 17]), 'b': 6})
>>> m5 = m(a=1, b=2)

# Evolve by merging with other mappings
>>> m5.update(m(a=2, c=3), {'a': 17, 'd': 35})
pmap({'a': 17, 'c': 3, 'b': 2, 'd': 35})
>>> pmap({'x': 1, 'y': 2}) + pmap({'y': 3, 'z': 4})
pmap({'y': 3, 'x': 1, 'z': 4})

# Dict-like methods to convert to list and iterate
>>> m3.items()
pvector([('a', 5), ('c', 3), ('b', 2)])
>>> list(m3)
['a', 'c', 'b']

PSet

With full support for the Set protocol PSet is meant as a drop in replacement to the built in set from a readers point of view. Support for the Hashable protocol also means that it can be used as key in Mappings.

Random access and insert is log32(n) where n is the size of the set.

>>> from pyrsistent import s

# No mutation of sets once created, you know the story...
>>> s1 = s(1, 2, 3, 2)
>>> s2 = s1.add(4)
>>> s3 = s1.remove(1)
>>> s1
pset([1, 2, 3])
>>> s2
pset([1, 2, 3, 4])
>>> s3
pset([2, 3])

# Full support for set operations
>>> s1 | s(3, 4, 5)
pset([1, 2, 3, 4, 5])
>>> s1 & s(3, 4, 5)
pset([3])
>>> s1 < s2
True
>>> s1 < s(3, 4, 5)
False

PRecord

A PRecord is a PMap with a fixed set of specified fields. Records are declared as python classes inheriting from PRecord. Because it is a PMap it has full support for all Mapping methods such as iteration and element access using subscript notation.

>>> from pyrsistent import PRecord, field
>>> class ARecord(PRecord):
...     x = field()
...
>>> r = ARecord(x=3)
>>> r
ARecord(x=3)
>>> r.x
3
>>> r.set(x=2)
ARecord(x=2)
>>> r.set(y=2)
Traceback (most recent call last):
AttributeError: 'y' is not among the specified fields for ARecord

Type information

It is possible to add type information to the record to enforce type checks. Multiple allowed types can be specified by providing an iterable of types.

>>> class BRecord(PRecord):
...     x = field(type=int)
...     y = field(type=(int, type(None)))
...
>>> BRecord(x=3, y=None)
BRecord(y=None, x=3)
>>> BRecord(x=3.0)
Traceback (most recent call last):
PTypeError: Invalid type for field BRecord.x, was float

Custom types (classes) that are iterable should be wrapped in a tuple to prevent their members being added to the set of valid types. Although Enums in particular are now supported without wrapping, see #83 for more information.

Mandatory fields

Fields are not mandatory by default but can be specified as such. If fields are missing an InvariantException will be thrown which contains information about the missing fields.

>>> from pyrsistent import InvariantException
>>> class CRecord(PRecord):
...     x = field(mandatory=True)
...
>>> r = CRecord(x=3)
>>> try:
...    r.discard('x')
... except InvariantException as e:
...    print(e.missing_fields)
...
('CRecord.x',)

Invariants

It is possible to add invariants that must hold when evolving the record. Invariants can be specified on both field and record level. If invariants fail an InvariantException will be thrown which contains information about the failing invariants. An invariant function should return a tuple consisting of a boolean that tells if the invariant holds or not and an object describing the invariant. This object can later be used to identify which invariant that failed.

The global invariant function is only executed if all field invariants hold.

Global invariants are inherited to subclasses.

>>> class RestrictedVector(PRecord):
...     __invariant__ = lambda r: (r.y >= r.x, 'x larger than y')
...     x = field(invariant=lambda x: (x > 0, 'x negative'))
...     y = field(invariant=lambda y: (y > 0, 'y negative'))
...
>>> r = RestrictedVector(y=3, x=2)
>>> try:
...    r.set(x=-1, y=-2)
... except InvariantException as e:
...    print(e.invariant_errors)
...
('y negative', 'x negative')
>>> try:
...    r.set(x=2, y=1)
... except InvariantException as e:
...    print(e.invariant_errors)
...
('x larger than y',)

Invariants may also contain multiple assertions. For those cases the invariant function should return a tuple of invariant tuples as described above. This structure is reflected in the invariant_errors attribute of the exception which will contain tuples with data from all failed invariants. Eg:

>>> class EvenX(PRecord):
...     x = field(invariant=lambda x: ((x > 0, 'x negative'), (x % 2 == 0, 'x odd')))
...
>>> try:
...    EvenX(x=-1)
... except InvariantException as e:
...    print(e.invariant_errors)
...
(('x negative', 'x odd'),)

Factories

It’s possible to specify factory functions for fields. The factory function receives whatever is supplied as field value and the actual returned by the factory is assigned to the field given that any type and invariant checks hold. PRecords have a default factory specified as a static function on the class, create(). It takes a Mapping as argument and returns an instance of the specific record. If a record has fields of type PRecord the create() method of that record will be called to create the “sub record” if no factory has explicitly been specified to override this behaviour.

>>> class DRecord(PRecord):
...     x = field(factory=int)
...
>>> class ERecord(PRecord):
...     d = field(type=DRecord)
...
>>> ERecord.create({'d': {'x': '1'}})
ERecord(d=DRecord(x=1))

Collection fields

It is also possible to have fields with pyrsistent collections.

>>> from pyrsistent import pset_field, pmap_field, pvector_field
>>> class MultiRecord(PRecord):
...     set_of_ints = pset_field(int)
...     map_int_to_str = pmap_field(int, str)
...     vector_of_strs = pvector_field(str)
...

Serialization

PRecords support serialization back to dicts. Default serialization will take keys and values “as is” and output them into a dict. It is possible to specify custom serialization functions to take care of fields that require special treatment.

>>> from datetime import date
>>> class Person(PRecord):
...     name = field(type=unicode)
...     birth_date = field(type=date,
...                        serializer=lambda format, d: d.strftime(format['date']))
...
>>> john = Person(name=u'John', birth_date=date(1985, 10, 21))
>>> john.serialize({'date': '%Y-%m-%d'})
{'birth_date': '1985-10-21', 'name': u'John'}

PClass

A PClass is a python class with a fixed set of specified fields. PClasses are declared as python classes inheriting from PClass. It is defined the same way that PRecords are and behaves like a PRecord in all aspects except that it is not a PMap and hence not a collection but rather a plain Python object.

>>> from pyrsistent import PClass, field
>>> class AClass(PClass):
...     x = field()
...
>>> a = AClass(x=3)
>>> a
AClass(x=3)
>>> a.x
3

Checked collections

Checked collections currently come in three flavors: CheckedPVector, CheckedPMap and CheckedPSet.

>>> from pyrsistent import CheckedPVector, CheckedPMap, CheckedPSet, thaw
>>> class Positives(CheckedPSet):
...     __type__ = (long, int)
...     __invariant__ = lambda n: (n >= 0, 'Negative')
...
>>> class Lottery(PRecord):
...     name = field(type=str)
...     numbers = field(type=Positives, invariant=lambda p: (len(p) > 0, 'No numbers'))
...
>>> class Lotteries(CheckedPVector):
...     __type__ = Lottery
...
>>> class LotteriesByDate(CheckedPMap):
...     __key_type__ = date
...     __value_type__ = Lotteries
...
>>> lotteries = LotteriesByDate.create({date(2015, 2, 15): [{'name': 'SuperLotto', 'numbers': {1, 2, 3}},
...                                                         {'name': 'MegaLotto',  'numbers': {4, 5, 6}}],
...                                     date(2015, 2, 16): [{'name': 'SuperLotto', 'numbers': {3, 2, 1}},
...                                                         {'name': 'MegaLotto',  'numbers': {6, 5, 4}}]})
>>> lotteries
LotteriesByDate({datetime.date(2015, 2, 15): Lotteries([Lottery(numbers=Positives([1, 2, 3]), name='SuperLotto'), Lottery(numbers=Positives([4, 5, 6]), name='MegaLotto')]), datetime.date(2015, 2, 16): Lotteries([Lottery(numbers=Positives([1, 2, 3]), name='SuperLotto'), Lottery(numbers=Positives([4, 5, 6]), name='MegaLotto')])})

# The checked versions support all operations that the corresponding
# unchecked types do
>>> lottery_0215 = lotteries[date(2015, 2, 15)]
>>> lottery_0215.transform([0, 'name'], 'SuperDuperLotto')
Lotteries([Lottery(numbers=Positives([1, 2, 3]), name='SuperDuperLotto'), Lottery(numbers=Positives([4, 5, 6]), name='MegaLotto')])

# But also makes asserts that types and invariants hold
>>> lottery_0215.transform([0, 'name'], 999)
Traceback (most recent call last):
PTypeError: Invalid type for field Lottery.name, was int

>>> lottery_0215.transform([0, 'numbers'], set())
Traceback (most recent call last):
InvariantException: Field invariant failed

# They can be converted back to python built ins with either thaw()
# or serialize() (which provides possibilities to customize serialization)
>>> thaw(lottery_0215)
[{'numbers': set([1, 2, 3]), 'name': 'SuperLotto'}, {'numbers': set([4, 5, 6]), 'name': 'MegaLotto'}]
>>> lottery_0215.serialize()
[{'numbers': set([1, 2, 3]), 'name': 'SuperLotto'}, {'numbers': set([4, 5, 6]), 'name': 'MegaLotto'}]

Transformations

Transformations are inspired by the cool library instar for Clojure. They let you evolve PMaps and PVectors with arbitrarily deep/complex nesting using simple syntax and flexible matching syntax.

The first argument to transformation is the path that points out the value to transform. The second is the transformation to perform. If the transformation is callable it will be applied to the value(s) matching the path. The path may also contain callables. In that case they are treated as matchers. If the matcher returns True for a specific key it is considered for transformation.

# Basic examples
>>> from pyrsistent import inc, freeze, thaw, rex, ny, discard
>>> v1 = freeze([1, 2, 3, 4, 5])
>>> v1.transform([2], inc)
pvector([1, 2, 4, 4, 5])
>>> v1.transform([lambda ix: 0 < ix < 4], 8)
pvector([1, 8, 8, 8, 5])
>>> v1.transform([lambda ix, v: ix == 0 or v == 5], 0)
pvector([0, 2, 3, 4, 0])

# The (a)ny matcher can be used to match anything
>>> v1.transform([ny], 8)
pvector([8, 8, 8, 8, 8])

# Regular expressions can be used for matching
>>> scores = freeze({'John': 12, 'Joseph': 34, 'Sara': 23})
>>> scores.transform([rex('^Jo')], 0)
pmap({'Joseph': 0, 'Sara': 23, 'John': 0})

# Transformations can be done on arbitrarily deep structures
>>> news_paper = freeze({'articles': [{'author': 'Sara', 'content': 'A short article'},
...                                   {'author': 'Steve', 'content': 'A slightly longer article'}],
...                      'weather': {'temperature': '11C', 'wind': '5m/s'}})
>>> short_news = news_paper.transform(['articles', ny, 'content'], lambda c: c[:25] + '...' if len(c) > 25 else c)
>>> very_short_news = news_paper.transform(['articles', ny, 'content'], lambda c: c[:15] + '...' if len(c) > 15 else c)
>>> very_short_news.articles[0].content
'A short article'
>>> very_short_news.articles[1].content
'A slightly long...'

# When nothing has been transformed the original data structure is kept
>>> short_news is news_paper
True
>>> very_short_news is news_paper
False
>>> very_short_news.articles[0] is news_paper.articles[0]
True

# There is a special transformation that can be used to discard elements. Also
# multiple transformations can be applied in one call
>>> thaw(news_paper.transform(['weather'], discard, ['articles', ny, 'content'], discard))
{'articles': [{'author': 'Sara'}, {'author': 'Steve'}]}

Evolvers

PVector, PMap and PSet all have support for a concept dubbed evolvers. An evolver acts like a mutable view of the underlying persistent data structure with “transaction like” semantics. No updates of the original data structure is ever performed, it is still fully immutable.

The evolvers have a very limited API by design to discourage excessive, and inappropriate, usage as that would take us down the mutable road. In principle only basic mutation and element access functions are supported. Check out the documentation of each data structure for specific examples.

Examples of when you may want to use an evolver instead of working directly with the data structure include:

  • Multiple updates are done to the same data structure and the intermediate results are of no interest. In this case using an evolver may be a more efficient and easier to work with.

  • You need to pass a vector into a legacy function or a function that you have no control over which performs in place mutations. In this case pass an evolver instance instead and then create a new pvector from the evolver once the function returns.

>>> from pyrsistent import v

# In place mutation as when working with the built in counterpart
>>> v1 = v(1, 2, 3)
>>> e = v1.evolver()
>>> e[1] = 22
>>> e = e.append(4)
>>> e = e.extend([5, 6])
>>> e[5] += 1
>>> len(e)
6

# The evolver is considered *dirty* when it contains changes compared to the underlying vector
>>> e.is_dirty()
True

# But the underlying pvector still remains untouched
>>> v1
pvector([1, 2, 3])

# Once satisfied with the updates you can produce a new pvector containing the updates.
# The new pvector will share data with the original pvector in the same way that would have
# been done if only using operations on the pvector.
>>> v2 = e.persistent()
>>> v2
pvector([1, 22, 3, 4, 5, 7])

# The evolver is now no longer considered *dirty* as it contains no differences compared to the
# pvector just produced.
>>> e.is_dirty()
False

# You may continue to work with the same evolver without affecting the content of v2
>>> e[0] = 11

# Or create a new evolver from v2. The two evolvers can be updated independently but will both
# share data with v2 where possible.
>>> e2 = v2.evolver()
>>> e2[0] = 1111
>>> e.persistent()
pvector([11, 22, 3, 4, 5, 7])
>>> e2.persistent()
pvector([1111, 22, 3, 4, 5, 7])

freeze and thaw

These functions are great when your cozy immutable world has to interact with the evil mutable world outside.

>>> from pyrsistent import freeze, thaw, v, m
>>> freeze([1, {'a': 3}])
pvector([1, pmap({'a': 3})])
>>> thaw(v(1, m(a=3)))
[1, {'a': 3}]

By default, freeze will also recursively convert values inside PVectors and PMaps. This behaviour can be changed by providing freeze with the flag strict=False.

>>> from pyrsistent import freeze, v, m
>>> freeze(v(1, v(2, [3])))
pvector([1, pvector([2, pvector([3])])])
>>> freeze(v(1, v(2, [3])), strict=False)
pvector([1, pvector([2, [3]])])
>>> freeze(m(a=m(b={'c': 1})))
pmap({'a': pmap({'b': pmap({'c': 1})})})
>>> freeze(m(a=m(b={'c': 1})), strict=False)
pmap({'a': pmap({'b': {'c': 1}})})

In this regard, thaw operates as the inverse of freeze so will thaw values inside native data structures unless passed the strict=False flag.

Compatibility

Pyrsistent is developed and tested on Python 3.7+ and PyPy3.

Performance

Pyrsistent is developed with performance in mind. Still, while some operations are nearly on par with their built in, mutable, counterparts in terms of speed, other operations are slower. In the cases where attempts at optimizations have been done, speed has generally been valued over space.

Pyrsistent comes with two API compatible flavors of PVector (on which PMap and PSet are based), one pure Python implementation and one implemented as a C extension. The latter generally being 2 - 20 times faster than the former. The C extension will be used automatically when possible.

The pure python implementation is fully PyPy compatible. Running it under PyPy speeds operations up considerably if the structures are used heavily (if JITed), for some cases the performance is almost on par with the built in counterparts.

Type hints

PEP 561 style type hints for use with mypy and various editors are available for most types and functions in pyrsistent.

Type classes for annotating your own code with pyrsistent types are also available under pyrsistent.typing.

Installation

pip install pyrsistent

Documentation

Available at http://pyrsistent.readthedocs.org/

Brief presentation available at http://slides.com/tobiasgustafsson/immutability-and-python/

Contributors

Tobias Gustafsson https://github.com/tobgu

Christopher Armstrong https://github.com/radix

Anders Hovmöller https://github.com/boxed

Itamar Turner-Trauring https://github.com/itamarst

Jonathan Lange https://github.com/jml

Richard Futrell https://github.com/Futrell

Jakob Hollenstein https://github.com/jkbjh

David Honour https://github.com/foolswood

David R. MacIver https://github.com/DRMacIver

Marcus Ewert https://github.com/sarum90

Jean-Paul Calderone https://github.com/exarkun

Douglas Treadwell https://github.com/douglas-treadwell

Travis Parker https://github.com/teepark

Julian Berman https://github.com/Julian

Dennis Tomas https://github.com/dtomas

Neil Vyas https://github.com/neilvyas

doozr https://github.com/doozr

Kamil Galuszka https://github.com/galuszkak

Tsuyoshi Hombashi https://github.com/thombashi

nattofriends https://github.com/nattofriends

agberk https://github.com/agberk

Waleed Khan https://github.com/arxanas

Jean-Louis Fuchs https://github.com/ganwell

Carlos Corbacho https://github.com/ccorbacho

Felix Yan https://github.com/felixonmars

benrg https://github.com/benrg

Jere Lahelma https://github.com/je-l

Max Taggart https://github.com/MaxTaggart

Vincent Philippon https://github.com/vphilippon

Semen Zhydenko https://github.com/ss18

Till Varoquaux https://github.com/till-varoquaux

Michal Kowalik https://github.com/michalvi

ossdev07 https://github.com/ossdev07

Kerry Olesen https://github.com/qhesz

johnthagen https://github.com/johnthagen

Bastien Vallet https://github.com/djailla

Ram Rachum https://github.com/cool-RR

Vincent Philippon https://github.com/vphilippon

Andrey Bienkowski https://github.com/hexagonrecursion

Ethan McCue https://github.com/bowbahdoe

Jason R. Coombs https://github.com/jaraco

Nathan https://github.com/ndowens

Geert Barentsen https://github.com/barentsen

phil-arh https://github.com/phil-arh

Tamás Nepusz https://github.com/ntamas

Hugo van Kemenade https://github.com/hugovk

Ben Beasley https://github.com/musicinmybrain

Noah C. Benson https://github.com/noahbenson

dscrofts https://github.com/dscrofts

Andy Reagan https://github.com/andyreagan

Aaron Durant https://github.com/Aaron-Durant

Contributing

Want to contribute? That’s great! If you experience problems please log them on GitHub. If you want to contribute code, please fork the repository and submit a pull request.

Run tests

Tests can be executed using tox.

Install tox: pip install tox

Run test for Python 3.8: tox -e py38

Release

  • pip install -r requirements.txt

  • Update CHANGES.txt

  • Update README.rst with any new contributors and potential info needed.

  • Update _pyrsistent_version.py

  • Commit and tag with new version: git add -u . && git commit -m ‘Prepare version vX.Y.Z’ && git tag -a vX.Y.Z -m ‘vX.Y.Z’

  • Push commit and tags: git push && git push –tags

  • Build new release using Github actions

Project status

Pyrsistent can be considered stable and mature (who knows, there may even be a 1.0 some day :-)). The project is maintained, bugs fixed, PRs reviewed and merged and new releases made. I currently do not have time for development of new features or functionality which I don’t have use for myself. I’m more than happy to take PRs for new functionality though!

There are a bunch of issues marked with enhancement and help wanted that contain requests for new functionality that would be nice to include. The level of difficulty and extend of the issues varies, please reach out to me if you’re interested in working on any of them.

If you feel that you have a grand master plan for where you would like Pyrsistent to go and have the time to put into it please don’t hesitate to discuss this with me and submit PRs for it. If all goes well I’d be more than happy to add additional maintainers to the project!

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrsistent-0.19.2.tar.gz (102.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrsistent-0.19.2-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

pyrsistent-0.19.2-cp310-cp310-win_amd64.whl (62.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pyrsistent-0.19.2-cp310-cp310-win32.whl (60.3 kB view details)

Uploaded CPython 3.10Windows x86

pyrsistent-0.19.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (117.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pyrsistent-0.19.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (113.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

pyrsistent-0.19.2-cp310-cp310-macosx_10_9_universal2.whl (82.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

pyrsistent-0.19.2-cp39-cp39-win_amd64.whl (62.8 kB view details)

Uploaded CPython 3.9Windows x86-64

pyrsistent-0.19.2-cp39-cp39-win32.whl (60.3 kB view details)

Uploaded CPython 3.9Windows x86

pyrsistent-0.19.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (117.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pyrsistent-0.19.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (113.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

pyrsistent-0.19.2-cp39-cp39-macosx_10_9_universal2.whl (82.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

pyrsistent-0.19.2-cp38-cp38-win_amd64.whl (62.8 kB view details)

Uploaded CPython 3.8Windows x86-64

pyrsistent-0.19.2-cp38-cp38-win32.whl (60.3 kB view details)

Uploaded CPython 3.8Windows x86

pyrsistent-0.19.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (120.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

pyrsistent-0.19.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (117.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

pyrsistent-0.19.2-cp38-cp38-macosx_10_9_universal2.whl (82.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ universal2 (ARM64, x86-64)

pyrsistent-0.19.2-cp37-cp37m-win_amd64.whl (62.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

pyrsistent-0.19.2-cp37-cp37m-win32.whl (60.3 kB view details)

Uploaded CPython 3.7mWindows x86

pyrsistent-0.19.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (118.0 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

pyrsistent-0.19.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (114.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

pyrsistent-0.19.2-cp37-cp37m-macosx_10_9_x86_64.whl (69.8 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file pyrsistent-0.19.2.tar.gz.

File metadata

  • Download URL: pyrsistent-0.19.2.tar.gz
  • Upload date:
  • Size: 102.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2.tar.gz
Algorithm Hash digest
SHA256 bfa0351be89c9fcbcb8c9879b826f4353be10f58f8a677efab0c017bf7137ec2
MD5 23da81256b8817e123568a858bf78997
BLAKE2b-256 b8ef325da441a385a8a931b3eeb70db23cb52da42799691988d8d943c5237f10

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-py3-none-any.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6b79a02a28550c98b6ca9c35b9f492beaa54d7c5c9e9949555893c8a9234d0
MD5 9ae0fcfc1162e0192e19cc037a3587e1
BLAKE2b-256 54d3986fcfeaf62047840c571a857fb8f3ad1e9622081d5e7d0ee5e3451ca2e7

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b39725209e06759217d1ac5fcdb510e98670af9e37223985f330b611f62e7425
MD5 97cba612301922fcc0203d3cf8b83bb2
BLAKE2b-256 5ef731748ccbbe68eb990347f252c4a39fcb1766e22907314922262a1dc5e1f6

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp310-cp310-win32.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp310-cp310-win32.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 456cb30ca8bff00596519f2c53e42c245c09e1a4543945703acd4312949bfd41
MD5 2fc7309facca09d6442a764c5545f200
BLAKE2b-256 42c2019693915e5d6fc88a145f4a4846fb4dc2a83cfa0a04256c76771eafb015

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 187d5730b0507d9285a96fca9716310d572e5464cadd19f22b63a6976254d77a
MD5 8f77739f52fca5cf41a98cb0bee53cf0
BLAKE2b-256 54d896308460ee237abf28b7798c491f8545a51e1c3e2f01895da4530c7bff86

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 055ab45d5911d7cae397dc418808d8802fb95262751872c841c170b0dbf51eed
MD5 8fedbba25b7dc931a8e04188f26de9d7
BLAKE2b-256 d9ca47cbb30a777aa74e4c40221385fb0c5eee5adfdb5406d29b4d10170dd243

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d6982b5a0237e1b7d876b60265564648a69b14017f3b5f908c5be2de3f9abb7a
MD5 f7a52003d04cda949c92bb5d421481ab
BLAKE2b-256 96ada95f96af0f645ff74dc2145ab3d920c77a0d9d547dbaddb721c31bbeec53

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 62.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dec3eac7549869365fe263831f576c8457f6c833937c68542d08fde73457d291
MD5 a9f2e16c807bd0364508005c9b35b5da
BLAKE2b-256 449142f8dab8dbe3bb1f07409566085feeb237c28e9cf6e8957aa2377cad78c1

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp39-cp39-win32.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 71d332b0320642b3261e9fee47ab9e65872c2bd90260e5d225dabeed93cbd42b
MD5 a8af5504a7264aafbdb9b3342d735e67
BLAKE2b-256 a19615848046e77dfe560f11099face554dc2e4b50f8b28d152be0ed72cd5a08

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 21455e2b16000440e896ab99e8304617151981ed40c29e9507ef1c2e4314ee95
MD5 75bfe0d11e1b21c892d2c5d4c38cffdb
BLAKE2b-256 cd2dcf7bcdfcf5aba1a68ced5b32620e7c165d0491bd962d6cd1e78b1c1b2d7a

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 bfd880614c6237243ff53a0539f1cb26987a6dc8ac6e66e0c5a40617296a045e
MD5 65abcb8602069af0692698ab2110c356
BLAKE2b-256 8ca8bd70a21552061cc43e4ea9aa329990ca16af0ab747d3f8524d3778aba2f0

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f1258f4e6c42ad0b20f9cfcc3ada5bd6b83374516cd01c0960e3cb75fdca6770
MD5 7d734c74bb53fd9dbde82d9ad846608e
BLAKE2b-256 23d93ffebba2a20084b56f8132ab1fa959161dcf6da4f27c85a4a4c9cc438db1

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 62.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9cd3e9978d12b5d99cbdc727a3022da0430ad007dacf33d0bf554b96427f33ab
MD5 217dc73ab0aaf0fd1f7a80df9a0f25df
BLAKE2b-256 a48d7d7e504e14d1030e31e8ea656482e5fe5b556e11ce43ac899cf5ed1467f5

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp38-cp38-win32.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e5d8f84d81e3729c3b506657dddfe46e8ba9c330bf1858ee33108f8bb2adb38a
MD5 0f79c34ab61aac62df05272b56baa908
BLAKE2b-256 a555165b1e579eeba5711f796362e151a4eba5a7bab6c307af68231b5d49c83f

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e371b844cec09d8dc424d940e54bba8f67a03ebea20ff7b7b0d56f526c71d584
MD5 5f2253a88f56b46ebafae13ff1844f04
BLAKE2b-256 5779562894286bce4d1391abf4efbafa8a4a63ae482e1408ff08bf8a855c8358

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 111156137b2e71f3a9936baf27cb322e8024dac3dc54ec7fb9f0bcf3249e68bb
MD5 718dcd1f6df63da5214d3355264792d0
BLAKE2b-256 7df2ad0363cb87673d3b076f6116c5d4385dc01fde8cce8292c7c7e133ba2fff

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a178209e2df710e3f142cbd05313ba0c5ebed0a55d78d9945ac7a4e09d923308
MD5 46e0f04e0d1218d2d36d6c6acd27f0bc
BLAKE2b-256 d985f175c246505fecf2ba073384e98188216b5f1547a82f8a69c58d78c698d3

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 62.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3ba4134a3ff0fc7ad225b6b457d1309f4698108fb6b35532d015dca8f5abed73
MD5 7fdd6f929f6b13af69ac45161e94fcfa
BLAKE2b-256 3c55666888db7c7070e4d64944ea2a786073e5a53aaaa67efdfe99a6d6c605b0

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp37-cp37m-win32.whl.

File metadata

  • Download URL: pyrsistent-0.19.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyrsistent-0.19.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d690b18ac4b3e3cab73b0b7aa7dbe65978a172ff94970ff98d82f2031f8971c2
MD5 ba95f850fd7ede5cfc0b11f0aab6f135
BLAKE2b-256 8f2b737a53eeb4b2036c58d8ac2e033590f1e4a2ffe7b174850aca4787a899a4

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 879b4c2f4d41585c42df4d7654ddffff1239dc4065bc88b745f0341828b83e78
MD5 7e941094f9e1315fd28cf3db45a06d08
BLAKE2b-256 16dd17f6f147234f7c99b5a23fdcc318adac1c84ef5d179ce1bfe6afe19213a9

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c43bec251bbd10e3cb58ced80609c5c1eb238da9ca78b964aea410fb820d00d6
MD5 75bab3b979135d13380d777f2431e8a8
BLAKE2b-256 99794ba4ef77bce2fb0c1140929e456a5101e5668af3aa46723e0a1daf2f437f

See more details on using hashes here.

File details

Details for the file pyrsistent-0.19.2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyrsistent-0.19.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2aede922a488861de0ad00c7630a6e2d57e8023e4be72d9d7147a9fcd2d30712
MD5 471455230452c93674032dd82c6cafa6
BLAKE2b-256 f63a3cfb47a3cfd3993d0f57ba305ef71697d490b8e2efe8c3752bc5b0f321f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page