Skip to main content

Apache Fory™ Python

Build Status PyPI Python Versions License Slack Channel X

Apache Fory™ is a blazing fast multi-language serialization framework powered by JIT compilation and zero-copy techniques, providing up to ultra-fast performance while maintaining ease of use and safety.

pyfory provides the Python implementation of Apache Fory™, offering both high-performance object serialization and advanced row-format capabilities for data processing tasks.

Key Features

Flexible Serialization Modes

  • Xlang mode: Default cross-language wire format with compatible schema evolution
  • Python native mode: Same-language mode and drop-in replacement for pickle/cloudpickle
  • Row Format: Zero-copy row format for analytics workloads

Versatile Serialization Features

  • Shared/circular reference support for complex object graphs in both Python native and xlang modes
  • Polymorphism support for customized types with automatic type dispatching
  • Schema evolution support for backward/forward compatibility when using dataclasses in xlang mode
  • Out-of-band buffer support for zero-copy serialization of large data structures like NumPy arrays and Pandas DataFrames, compatible with pickle protocol 5
  • Reduced-precision xlang types use reserved pyfory.Float16 and pyfory.BFloat16 annotations and native Python float values; dense array payloads use public wrappers such as Float16Array and BFloat16Array

Blazing Fast Performance

  • Extremely fast performance compared to other serialization frameworks
  • Runtime code generation and Cython-accelerated core implementation for optimal performance

Compact Data Size

  • Compact object graph protocol with minimal space overhead—up to 3× size reduction compared to pickle/cloudpickle
  • Meta packing and sharing to minimize type forward/backward compatibility space overhead

Security & Safety

  • Strict mode prevents deserialization of untrusted types by type registration and checks.
  • Reference tracking for handling circular references safely

Installation

Basic Installation

Install pyfory using pip:

pip install pyfory

Optional Dependencies

# Install with row format support (requires Apache Arrow)
pip install pyfory[format]

# Install from source for development
git clone https://github.com/apache/fory.git
cd fory/python
pip install -e ".[dev,format]"

Requirements

  • Python: 3.8 or higher
  • OS: Linux, macOS, Windows

Python Native Serialization

pyfory provides a Python native mode for Python-only payloads. It is optimized for Python's type system and offers the same object surface as pickle/cloudpickle, but with significantly better performance, smaller data size, and enhanced security features.

The binary protocol and API are similar to Fory's xlang mode, but Python native mode can serialize any Python object—including global functions, local functions, lambdas, local classes and types with custom serialization using __getstate__/__reduce__/__reduce_ex__, which are not allowed in xlang mode.

To use Python native mode, create Fory with xlang=False. Use this mode when replacing pickle or cloudpickle for pure Python applications:

import pyfory
fory = pyfory.Fory(xlang=False, ref=False, strict=True)

Xlang Object Serialization

Basic Object Serialization

Serialize and deserialize Python objects with a simple API. This example shows serializing a dictionary with mixed types:

import pyfory

# Create an xlang Fory instance.
fory = pyfory.Fory(xlang=True)

# Serialize xlang-compatible values
data = fory.dumps({"name": "Alice", "age": 30, "scores": [95, 87, 92]})

# Deserialize back to Python object
obj = fory.loads(data)
print(obj)  # {'name': 'Alice', 'age': 30, 'scores': [95, 87, 92]}

Note: dumps()/loads() are aliases for serialize()/deserialize(). Both APIs are identical, use whichever feels more intuitive.

Custom Class Serialization

Fory automatically handles dataclasses and custom types. Register your class once, then serialize instances seamlessly:

import pyfory
from dataclasses import dataclass
from typing import List, Dict

@dataclass
class Person:
    name: str
    age: pyfory.Int32
    scores: List[pyfory.Int32]
    metadata: Dict[str, str]

fory = pyfory.Fory(xlang=True, ref=True)
fory.register(Person, name="example.Person")
person = Person("Bob", 25, [88, 92, 85], {"team": "engineering"})
data = fory.serialize(person)
result = fory.deserialize(data)
print(result)  # Person(name='Bob', age=25, ...)

Drop-in Replacement for Pickle/Cloudpickle

pyfory can serialize any Python object with the following configuration:

  • For circular references: Set ref=True to enable reference tracking
  • For functions/classes: Set strict=False to allow deserialization of dynamic types

Security Warning: When strict=False, Fory will deserialize arbitrary types, which can pose security risks if data comes from untrusted sources. Only use strict=False in controlled environments where you trust the data source completely. If you do need to use strict=False, please configure a DeserializationPolicy when creating fory using policy=your_policy to controlling deserialization behavior.

Common Usage

Serialize common Python objects including dicts, lists, and custom classes without any registration:

import pyfory

# Create Fory instance
fory = pyfory.Fory(xlang=False, ref=True, strict=False)

# serialize common Python objects
data = fory.dumps({"name": "Alice", "age": 30, "scores": [95, 87, 92]})
print(fory.loads(data))

# serialize custom objects
from dataclasses import dataclass

@dataclass
class Person:
    name: str
    age: int

person = Person("Bob", 25)
data = fory.dumps(person)
print(fory.loads(data))  # Person(name='Bob', age=25)

Serialize Global Functions

Capture and get functions defined at module level. Fory deserialize and return same function object:

import pyfory

# Create Fory instance
fory = pyfory.Fory(xlang=False, ref=True, strict=False)

# serialize global functions
def my_global_function(x):
    return 10 * x

data = fory.dumps(my_global_function)
print(fory.loads(data)(10))  # 100

Serialize Local Functions/Lambdas

Serialize functions with closures and lambda expressions. Fory captures the closure variables automatically:

import pyfory

# Create Fory instance
fory = pyfory.Fory(xlang=False, ref=True, strict=False)

# serialize local functions with closures
def my_function():
    local_var = 10
    def local_func(x):
        return x * local_var
    return local_func

data = fory.dumps(my_function())
print(fory.loads(data)(10))  # 100

# serialize lambdas
data = fory.dumps(lambda x: 10 * x)
print(fory.loads(data)(10))  # 100

Serialize Global Classes/Methods

Serialize class objects, instance methods, class methods, and static methods. All method types are supported:

from dataclasses import dataclass
import pyfory
fory = pyfory.Fory(xlang=False, ref=True, strict=False)

# serialize global class
@dataclass
class Person:
    name: str
    age: int

    def f(self, x):
        return self.age * x

    @classmethod
    def g(cls, x):
        return 10 * x

    @staticmethod
    def h(x):
        return 10 * x

print(fory.loads(fory.dumps(Person))("Bob", 25))  # Person(name='Bob', age=25)
# serialize global class instance method
print(fory.loads(fory.dumps(Person("Bob", 20).f))(10))  # 200
# serialize global class class method
print(fory.loads(fory.dumps(Person.g))(10))  # 100
# serialize global class static method
print(fory.loads(fory.dumps(Person.h))(10))  # 100

Serialize Local Classes/Methods

Serialize classes defined inside functions along with their methods. Useful for dynamic class creation:

from dataclasses import dataclass
import pyfory
fory = pyfory.Fory(xlang=False, ref=True, strict=False)

def create_local_class():
    class LocalClass:
        def f(self, x):
            return 10 * x

        @classmethod
        def g(cls, x):
            return 10 * x

        @staticmethod
        def h(x):
            return 10 * x
    return LocalClass

# serialize local class
data = fory.dumps(create_local_class())
print(fory.loads(data)().f(10))  # 100

# serialize local class instance method
data = fory.dumps(create_local_class()().f)
print(fory.loads(data)(10))  # 100

# serialize local class method
data = fory.dumps(create_local_class().g)
print(fory.loads(data)(10))  # 100

# serialize local class static method
data = fory.dumps(create_local_class().h)
print(fory.loads(data)(10))  # 100

Out-of-Band Buffer Serialization

Fory supports pickle5-compatible out-of-band buffer serialization for efficient zero-copy handling of large data structures. This is particularly useful for NumPy arrays, Pandas DataFrames, and other objects with large memory footprints.

Out-of-band serialization separates metadata from the actual data buffers, allowing for:

  • Zero-copy transfers when sending data over networks or IPC using memoryview
  • Improved performance for large datasets
  • Pickle5 compatibility using pickle.PickleBuffer
  • Flexible stream support - write to any writable object (files, BytesIO, sockets, etc.)

Basic Out-of-Band Serialization

import pyfory
import numpy as np

fory = pyfory.Fory(xlang=False, ref=False, strict=False)

# Large numpy array
array = np.arange(10000, dtype=np.float64)

# Serialize with out-of-band buffers
buffer_objects = []
serialized_data = fory.serialize(array, buffer_callback=buffer_objects.append)

# Convert buffer objects to memoryview for zero-copy transmission
# For contiguous buffers (bytes, numpy arrays), this is zero-copy
# For non-contiguous data, a copy may be created to ensure contiguity
buffers = [obj.getbuffer() for obj in buffer_objects]

# Deserialize with out-of-band buffers (accepts memoryview, bytes, or Buffer)
deserialized_array = fory.deserialize(serialized_data, buffers=buffers)

assert np.array_equal(array, deserialized_array)

Out-of-Band with Pandas DataFrames

import pyfory
import pandas as pd
import numpy as np

fory = pyfory.Fory(xlang=False, ref=False, strict=False)

# Create a DataFrame with numeric columns
df = pd.DataFrame({
    'a': np.arange(1000, dtype=np.float64),
    'b': np.arange(1000, dtype=np.int64),
    'c': ['text'] * 1000
})

# Serialize with out-of-band buffers
buffer_objects = []
serialized_data = fory.serialize(df, buffer_callback=buffer_objects.append)
buffers = [obj.getbuffer() for obj in buffer_objects]

# Deserialize
deserialized_df = fory.deserialize(serialized_data, buffers=buffers)

assert df.equals(deserialized_df)

Selective Out-of-Band Serialization

You can control which buffers go out-of-band by providing a callback that returns True to keep data in-band or False (and appending to a list) to send it out-of-band:

import pyfory
import numpy as np

fory = pyfory.Fory(xlang=False, ref=True, strict=False)

arr1 = np.arange(1000, dtype=np.float64)
arr2 = np.arange(2000, dtype=np.float64)
data = [arr1, arr2]

buffer_objects = []
counter = 0

def selective_callback(buffer_object):
    global counter
    counter += 1
    # Only send even-numbered buffers out-of-band
    if counter % 2 == 0:
        buffer_objects.append(buffer_object)
        return False  # Out-of-band
    return True  # In-band

serialized = fory.serialize(data, buffer_callback=selective_callback)
buffers = [obj.getbuffer() for obj in buffer_objects]
deserialized = fory.deserialize(serialized, buffers=buffers)

Pickle5 Compatibility

Fory's out-of-band serialization is fully compatible with pickle protocol 5. When objects implement __reduce_ex__(protocol), Fory automatically uses protocol 5 to enable pickle.PickleBuffer support:

import pyfory
import pickle

fory = pyfory.Fory(xlang=False, ref=False, strict=False)

# PickleBuffer objects are automatically supported
data = b"Large binary data"
pickle_buffer = pickle.PickleBuffer(data)

# Serialize with buffer callback for out-of-band handling
buffer_objects = []
serialized = fory.serialize(pickle_buffer, buffer_callback=buffer_objects.append)
buffers = [obj.getbuffer() for obj in buffer_objects]

# Deserialize with buffers
deserialized = fory.deserialize(serialized, buffers=buffers)
assert bytes(deserialized.raw()) == data

Writing Buffers to Different Streams

The BufferObject.write_to() method accepts any writable stream object, making it flexible for various use cases:

import pyfory
import numpy as np
import io

fory = pyfory.Fory(xlang=False, ref=False, strict=False)

array = np.arange(1000, dtype=np.float64)

# Collect out-of-band buffers
buffer_objects = []
serialized = fory.serialize(array, buffer_callback=buffer_objects.append)

# Write to different stream types
for buffer_obj in buffer_objects:
    # Write to BytesIO (in-memory stream)
    bytes_stream = io.BytesIO()
    buffer_obj.write_to(bytes_stream)

    # Write to file
    with open('/tmp/buffer_data.bin', 'wb') as f:
        buffer_obj.write_to(f)

    # Get zero-copy memoryview (for contiguous buffers)
    mv = buffer_obj.getbuffer()
    assert isinstance(mv, memoryview)

Note: For contiguous memory buffers (like bytes, numpy arrays), getbuffer() returns a zero-copy memoryview. For non-contiguous data, a copy may be created to ensure contiguity.

Cross-Language Object Graph Serialization

pyfory supports cross-language object graph serialization, allowing you to serialize data in Python and deserialize it in Java, Go, Rust, or other supported languages.

The binary protocol and API are similar to pyfory's Python native mode, but Python native mode can serialize any Python object—including global functions, local functions, lambdas, local classes, and types with custom serialization using __getstate__/__reduce__/__reduce_ex__, which are not allowed in xlang mode.

Xlang mode is the default. Set xlang=True explicitly in cross-language examples so the mode choice is visible:

import pyfory
fory = pyfory.Fory(xlang=True, ref=False, strict=True)

Cross-Language Serialization

Serialize data in Python and deserialize it in Java, Go, Rust, or other supported languages. Both sides must register the same type with matching names:

Python (Serializer)

from dataclasses import dataclass
import pyfory

# Xlang mode for interoperability
f = pyfory.Fory(xlang=True, ref=True)

# Register type for cross-language compatibility
@dataclass
class Person:
    name: str
    age: pyfory.Int32

f.register(Person, name="example.Person")

person = Person("Charlie", 35)
binary_data = f.serialize(person)
# binary_data can now be sent to Java, Go, etc.

Nested collection annotations are declared schema and are honored in both pure Python and Cython modes.

Java (Deserializer)

import org.apache.fory.*;

public class Person {
    public String name;
    public int age;
}

Fory fory = Fory.builder()
    .withXlang(true)
    .withRefTracking(true)
    .build();

fory.register(Person.class, "example.Person");
Person person = (Person) fory.deserialize(binaryData);

Row Format - Zero-Copy Processing

Apache Fory™ provides a random-access row format that enables reading nested fields from binary data without full deserialization. This drastically reduces overhead when working with large objects where only partial data access is needed. The format also supports memory-mapped files for ultra-low memory footprint.

Basic Row Format Usage

Encode objects to row format for random access without full deserialization. Ideal for large datasets:

Python

import pyfory
import pyarrow as pa
from dataclasses import dataclass
from typing import List, Dict

@dataclass
class Bar:
    f1: str
    f2: List[pa.int64]

@dataclass
class Foo:
    f1: pa.int32
    f2: List[pa.int32]
    f3: Dict[str, pa.int32]
    f4: List[Bar]

# Create encoder for row format
encoder = pyfory.encoder(Foo)

# Create large dataset
foo = Foo(
    f1=10,
    f2=list(range(1_000_000)),
    f3={f"k{i}": i for i in range(1_000_000)},
    f4=[Bar(f1=f"s{i}", f2=list(range(10))) for i in range(1_000_000)]
)

# Encode to row format
binary: bytes = encoder.to_row(foo).to_bytes()

# Zero-copy access - no full deserialization needed!
foo_row = pyfory.RowData(encoder.schema, binary)
print(foo_row.f2[100000])              # Access 100,000th element directly
print(foo_row.f4[100000].f1)           # Access nested field directly
print(foo_row.f4[200000].f2[5])        # Access deeply nested field directly

Cross-Language Compatibility

Row format works across languages. Here's the same data structure accessed in Java:

Java

public class Bar {
  String f1;
  List<Long> f2;
}

public class Foo {
  int f1;
  List<Integer> f2;
  Map<String, Integer> f3;
  List<Bar> f4;
}

RowEncoder<Foo> encoder = Encoders.bean(Foo.class);

// Create large dataset
Foo foo = new Foo();
foo.f1 = 10;
foo.f2 = IntStream.range(0, 1_000_000).boxed().collect(Collectors.toList());
foo.f3 = IntStream.range(0, 1_000_000).boxed().collect(Collectors.toMap(i -> "k" + i, i -> i));
List<Bar> bars = new ArrayList<>(1_000_000);
for (int i = 0; i < 1_000_000; i++) {
  Bar bar = new Bar();
  bar.f1 = "s" + i;
  bar.f2 = LongStream.range(0, 10).boxed().collect(Collectors.toList());
  bars.add(bar);
}
foo.f4 = bars;

// Encode to row format (cross-language compatible with Python)
BinaryRow binaryRow = encoder.toRow(foo);

// Zero-copy random access without full deserialization
BinaryArray f2Array = binaryRow.getArray(1);              // Access f2 list
BinaryArray f4Array = binaryRow.getArray(3);              // Access f4 list
BinaryRow bar10 = f4Array.getStruct(10);                  // Access 11th Bar
long value = bar10.getArray(1).getInt64(5);               // Access 6th element of bar.f2

// Partial deserialization - only deserialize what you need
RowEncoder<Bar> barEncoder = Encoders.bean(Bar.class);
Bar bar1 = barEncoder.fromRow(f4Array.getStruct(10));     // Deserialize 11th Bar only
Bar bar2 = barEncoder.fromRow(f4Array.getStruct(20));     // Deserialize 21st Bar only

// Full deserialization when needed
Foo newFoo = encoder.fromRow(binaryRow);

C++

And in C++ with compile-time type information:

#include "fory/encoder/row_encoder.h"
#include "fory/row/writer.h"

struct Bar {
  std::string f1;
  std::vector<int64_t> f2;
  FORY_STRUCT(Bar, f1, f2);
};

struct Foo {
  int32_t f1;
  std::vector<int32_t> f2;
  std::map<std::string, int32_t> f3;
  std::vector<Bar> f4;
  FORY_STRUCT(Foo, f1, f2, f3, f4);
};

// Create large dataset
Foo foo;
foo.f1 = 10;
for (int i = 0; i < 1000000; i++) {
  foo.f2.push_back(i);
  foo.f3["k" + std::to_string(i)] = i;
}
for (int i = 0; i < 1000000; i++) {
  Bar bar;
  bar.f1 = "s" + std::to_string(i);
  for (int j = 0; j < 10; j++) {
    bar.f2.push_back(j);
  }
  foo.f4.push_back(bar);
}

// Encode to row format (cross-language compatible with Python/Java)
fory::row::encoder::RowEncoder<Foo> encoder;
encoder.encode(foo);
auto row = encoder.get_writer().to_row();

// Zero-copy random access without full deserialization
auto f2_array = row->get_array(1);                   // Access f2 list
auto f4_array = row->get_array(3);                   // Access f4 list
auto bar10 = f4_array->get_struct(10);               // Access 11th Bar
int64_t value = bar10->get_array(1)->get_int64(5);   // Access 6th element of bar.f2
std::string str = bar10->get_string(0);              // Access bar.f1

Key Benefits

  • Zero-Copy Access: Read nested fields without deserializing the entire object
  • Memory Efficiency: Memory-map large datasets directly from disk
  • Cross-Language: Binary format is compatible between Python, Java, and other Fory implementations
  • Partial Deserialization: Deserialize only the specific elements you need
  • High Performance: Skip unnecessary data parsing for analytics and big data workloads

Core API Reference

Fory Class

The main serialization interface:

class Fory:
    def __init__(
        self,
        xlang: bool = True,
        ref: bool = False,
        strict: bool = True,
        compatible: bool | None = None,
        max_depth: int = 50
    )

ThreadSafeFory Class

Thread-safe serialization interface using thread-local storage:

class ThreadSafeFory:
    def __init__(
        self,
        xlang: bool = True,
        ref: bool = False,
        strict: bool = True,
        compatible: bool | None = None,
        max_depth: int = 50
    )

ThreadSafeFory provides thread-safe serialization by maintaining a pool of Fory instances protected by a lock. When a thread needs to serialize/deserialize, it gets an instance from the pool, uses it, and returns it. All type registrations must be done before any serialization to ensure consistency across all instances.

Thread Safety Example:

import pyfory
import threading
from dataclasses import dataclass

@dataclass
class Person:
    name: str
    age: int

# Create thread-safe Fory instance
fory = pyfory.ThreadSafeFory(xlang=False, ref=True)
fory.register(Person)

# Use in multiple threads safely
def serialize_in_thread(thread_id):
    person = Person(name=f"User{thread_id}", age=25 + thread_id)
    data = fory.serialize(person)
    result = fory.deserialize(data)
    print(f"Thread {thread_id}: {result}")

threads = [threading.Thread(target=serialize_in_thread, args=(i,)) for i in range(10)]
for t in threads: t.start()
for t in threads: t.join()

Key Features:

  • Instance Pool: Maintains a pool of Fory instances protected by a lock for thread safety
  • Shared Configuration: All registrations must be done upfront and are applied to all instances
  • Same API: Drop-in replacement for Fory class with identical methods
  • Registration Safety: Prevents registration after first use to ensure consistency

When to Use:

  • Multi-threaded Applications: Web servers, concurrent workers, parallel processing
  • Shared Fory Instances: When multiple threads need to serialize/deserialize data
  • Thread Pools: Applications using thread pools or concurrent.futures

Parameters:

  • xlang (bool, default=True): Use xlang mode. Set False for Python native mode supporting Python-specific objects.
  • ref (bool, default=False): Enable reference tracking for shared/circular references. Disable for better performance if your data has no shared references.
  • strict (bool, default=True): Require type registration for security. Highly recommended for production. Only disable in trusted environments.
  • compatible (bool | None, default None): Enable schema evolution. None enables compatible mode in both xlang and native mode. Set False only when every reader and writer always uses the same Python class schema and you want faster serialization and smaller size.
  • max_depth (int, default=50): Maximum deserialization depth for security, preventing stack overflow attacks.

Key Methods:

# Serialization (serialize/deserialize are identical to dumps/loads)
data: bytes = fory.serialize(obj)
obj = fory.deserialize(data)

# Alternative API (aliases)
data: bytes = fory.dumps(obj)
obj = fory.loads(data)

# Type registration by id
fory.register(MyClass, type_id=123)
fory.register(MyClass, type_id=123, serializer=custom_serializer)

# Type registration by name
fory.register(MyClass, name="my.package.MyClass")
fory.register(MyClass, name="my.package.MyClass", serializer=custom_serializer)

Xlang And Native Mode Comparison

Feature Native mode (xlang=False) Xlang mode (default)
Use case Pure Python applications Multi-language systems
Compatibility Python only Java, Go, Rust, C++, JavaScript, etc.
Supported types Python object surface Cross-language compatible types
Functions/lambdas Supported with trusted dynamic deserialization Not allowed
Local classes Supported with trusted dynamic deserialization Not allowed
Dynamic classes Supported with trusted dynamic deserialization Not allowed
Schema mode default Compatible Compatible

Native Mode (xlang=False)

Python native mode supports Python-specific objects including functions, classes, and closures. Use it for Python-only applications:

import pyfory

# Python native mode
fory = pyfory.Fory(xlang=False, ref=True, strict=False)

# Supports ALL Python objects:
data = fory.dumps({
    'function': lambda x: x * 2,        # Functions and lambdas
    'class': type('Dynamic', (), {}),    # Dynamic classes
    'method': str.upper,                # Methods
    'nested': {'circular_ref': None}    # Circular references (when ref=True)
})

# Drop-in replacement for pickle/cloudpickle
import pickle
obj = [1, 2, {"nested": [3, 4]}]
assert fory.loads(fory.dumps(obj)) == pickle.loads(pickle.dumps(obj))

# Significantly faster and more compact than pickle
import timeit
obj = {f"key{i}": f"value{i}" for i in range(10000)}
print(f"Fory: {timeit.timeit(lambda: fory.dumps(obj), number=1000):.3f}s")
print(f"Pickle: {timeit.timeit(lambda: pickle.dumps(obj), number=1000):.3f}s")

Xlang Mode

Xlang mode restricts types to those compatible across all Fory implementations. Use it for multi-language systems:

import pyfory

f = pyfory.Fory(xlang=True, ref=True)

# Only supports cross-language compatible types
f.register(MyDataClass, name="com.example.MyDataClass")

# Data can be read by Java, Go, Rust, etc.
data = f.serialize(MyDataClass(field1="value", field2=42))

Advanced Features

Reference Tracking & Circular References

Handle shared references and circular dependencies safely. Set ref=True to deduplicate objects:

import pyfory

f = pyfory.Fory(xlang=False, ref=True)  # Enable reference tracking

# Handle circular references safely
class Node:
    def __init__(self, value):
        self.value = value
        self.children = []
        self.parent = None

root = Node("root")
child = Node("child")
child.parent = root  # Circular reference
root.children.append(child)

# Serializes without infinite recursion
data = f.serialize(root)
result = f.deserialize(data)
assert result.children[0].parent is result  # Reference preserved

Type Registration

In strict mode, Fory loads and instantiates only registered application types. Compatible metadata for an unregistered remote Struct returns the fixed data-only pyfory.UnknownStruct carrier; it does not load or generate the sender-named class. This prevents arbitrary class materialization:

import pyfory

# Strict mode (recommended for production)
f = pyfory.Fory(xlang=False, strict=True)

class SafeClass:
    def __init__(self, data):
        self.data = data

# Must register types in strict mode
f.register(SafeClass, name="com.example.SafeClass")

# Now serialization works
obj = SafeClass("safe data")
data = f.serialize(obj)
result = f.deserialize(data)

# Unregistered types will raise an exception
class UnsafeClass:
    pass

# This will fail in strict mode
try:
    f.serialize(UnsafeClass())
except Exception as e:
    print("Security protection activated!")

Custom Serializers

Implement custom serialization logic for specialized types with a single write/read API:

import pyfory
from pyfory.serializer import Serializer
from dataclasses import dataclass

@dataclass
class Foo:
    f1: int
    f2: str

class FooSerializer(Serializer):
    def __init__(self, fory, cls):
        super().__init__(fory, cls)

    def write(self, buffer, obj: Foo):
        # Custom serialization logic
        buffer.write_varint32(obj.f1)
        buffer.write_string(obj.f2)

    def read(self, buffer):
        # Custom deserialization logic
        f1 = buffer.read_varint32()
        f2 = buffer.read_string()
        return Foo(f1, f2)

f = pyfory.Fory(xlang=False)
f.register(Foo, type_id=100, serializer=FooSerializer(f, Foo))

# Now Foo uses your custom serializer
data = f.dumps(Foo(42, "hello"))
result = f.loads(data)
print(result)  # Foo(f1=42, f2='hello')

Numpy & Scientific Computing

Fory natively supports numpy arrays with optimized serialization. Large arrays use zero-copy when possible:

import pyfory
import numpy as np

f = pyfory.Fory(xlang=False)

# Numpy arrays are supported natively
arrays = {
    'matrix': np.random.rand(1000, 1000),
    'vector': np.arange(10000),
    'bool_mask': np.random.choice([True, False], size=5000)
}

data = f.serialize(arrays)
result = f.deserialize(data)

# Zero-copy for compatible array types
assert np.array_equal(arrays['matrix'], result['matrix'])

Best Practices

Production Configuration

Use these recommended settings to balance security, performance, and functionality in production:

import pyfory

# Recommended settings for production
fory = pyfory.Fory(
    xlang=False,        # Native mode for Python-only traffic
    ref=False,           # Enable if you have shared/circular references
    strict=True,        # CRITICAL: Always True in production
    max_depth=20       # Adjust based on your data structure depth
)

# Register all types upfront
fory.register(UserModel, type_id=100)
fory.register(OrderModel, type_id=101)
fory.register(ProductModel, type_id=102)

Performance Tips

Optimize serialization speed and memory usage with these guidelines:

  1. Disable ref=True if not needed: Reference tracking has overhead
  2. Use type_id instead of name: Integer IDs are faster than string names
  3. Reuse Fory instances: Create once, use many times
  4. Use compatible=False only for same-schema data: Disable compatible mode only when every reader and writer always uses the same Python class schema and you want faster serialization and smaller size
  5. Enable Cython: Make sure ENABLE_FORY_CYTHON_SERIALIZATION=1, should be enabled by default
  6. Use row format for large arrays: Zero-copy access for analytics
# Good: Reuse instance
fory = pyfory.Fory(xlang=False)
for obj in objects:
    data = fory.dumps(obj)

# Bad: Create new instance each time
for obj in objects:
    fory = pyfory.Fory(xlang=False)  # Wasteful!
    data = fory.dumps(obj)

Type Registration Patterns

Choose the right registration approach for your use case:

# Pattern 1: Simple registration
fory.register(MyClass, type_id=100)

# Pattern 2: Cross-language with name
fory.register(MyClass, name="com.example.MyClass")

# Pattern 3: With custom serializer
fory.register(MyClass, type_id=100, serializer=MySerializer(fory, MyClass))

# Pattern 4: Batch registration
type_id = 100
for model_class in [User, Order, Product, Invoice]:
    fory.register(model_class, type_id=type_id)
    type_id += 1

Error Handling

Handle common serialization errors gracefully. Catch specific exceptions for better error recovery:

import pyfory
from pyfory.error import TypeUnregisteredError, TypeNotCompatibleError

fory = pyfory.Fory(strict=True)

try:
    data = fory.dumps(my_object)
except TypeUnregisteredError as e:
    print(f"Type not registered: {e}")
    # Register the type and retry
    fory.register(type(my_object), type_id=100)
    data = fory.dumps(my_object)
except Exception as e:
    print(f"Serialization failed: {e}")

try:
    obj = fory.loads(data)
except TypeNotCompatibleError as e:
    print(f"Schema mismatch: {e}")
    # Handle version mismatch
except Exception as e:
    print(f"Deserialization failed: {e}")

Security Best Practices

Production Configuration

Never disable strict=True in production unless your environment is completely trusted:

import pyfory

# Recommended production settings
f = pyfory.Fory(
    ref=True,      # Handle circular references
    strict=True,   # IMPORTANT: Prevent malicious data
    max_depth=100  # Prevent deep recursion attacks
)

# Explicitly register allowed types
f.register(UserModel, type_id=100)
f.register(OrderModel, type_id=101)
# Never set strict=False in production with untrusted data!

Development vs Production

Use environment variables to switch between development and production configurations:

import pyfory
import os

# Development configuration
if os.getenv('ENV') == 'development':
    fory = pyfory.Fory(
        xlang=False,
        ref=True,
        strict=False,    # Allow any type for development
        max_depth=1000   # Higher limit for development
    )
else:
    # Production configuration (security hardened)
    fory = pyfory.Fory(
        ref=True,
        strict=True,     # CRITICAL: Require registration
        max_depth=100    # Reasonable limit
    )
    # Register only known safe types
    for idx, model_class in enumerate([UserModel, ProductModel, OrderModel]):
        fory.register(model_class, type_id=100 + idx)

DeserializationPolicy

When strict=False is necessary (e.g., deserializing functions/lambdas), use DeserializationPolicy to implement fine-grained security controls during deserialization. This provides protection similar to pickle.Unpickler.find_class() but with more comprehensive hooks.

Why use DeserializationPolicy?

  • Block dangerous classes/modules (e.g., subprocess.Popen)
  • Intercept and validate __reduce__ callables before invocation
  • Sanitize sensitive data during __setstate__
  • Replace or reject deserialized objects based on custom rules

Example: Blocking Dangerous Classes

import pyfory
from pyfory import DeserializationPolicy

dangerous_modules = {'subprocess', 'os', '__builtin__'}

class SafeDeserializationPolicy(DeserializationPolicy):
    """Block potentially dangerous classes during deserialization."""

    def validate_class(self, cls, is_local, **kwargs):
        # Block dangerous modules
        if cls.__module__ in dangerous_modules:
            raise ValueError(f"Blocked dangerous class: {cls.__module__}.{cls.__name__}")

    def intercept_reduce_call(self, callable_obj, args, **kwargs):
        # Block specific callable invocations during __reduce__
        if getattr(callable_obj, '__name__', "") == 'Popen':
            raise ValueError("Blocked attempt to invoke subprocess.Popen")
        return None

    def intercept_setstate(self, obj, state, **kwargs):
        # Sanitize sensitive data
        if isinstance(state, dict) and 'password' in state:
            state['password'] = '***REDACTED***'
        return None

# Create Fory with custom security policy
policy = SafeDeserializationPolicy()
fory = pyfory.Fory(xlang=False, ref=True, strict=False, policy=policy)

# Now deserialization is protected by your custom policy
data = fory.serialize(my_object)
result = fory.deserialize(data)  # Policy hooks will be invoked

Available Policy Hooks:

  • Reference validation hooks reject by raising exceptions and otherwise leave deserialized references unchanged.
  • validate_class(cls, is_local) - Validate/block class types during deserialization
  • validate_module(module_name, is_local) - Validate/block module imports
  • validate_function(func, is_local) - Validate/block function references
  • validate_method(method, is_local) - Validate/block method references
  • intercept_reduce_call(callable_obj, args) - Intercept __reduce__ invocations
  • inspect_reduced_object(obj) - Inspect/replace objects created via __reduce__
  • intercept_setstate(obj, state) - Sanitize state before __setstate__
  • authorize_instantiation(cls, args, kwargs) - Control class instantiation

See also: pyfory/policy.py contains detailed documentation and examples for each hook.

Troubleshooting

Common Issues

Q: ImportError with format features

# A: Install Row format support
pip install pyfory[format]

# Or install from source with format support
pip install -e ".[format]"

Q: Slow serialization performance

# A: Check if Cython acceleration is enabled
import pyfory
print(pyfory.ENABLE_FORY_CYTHON_SERIALIZATION)  # Should be True

# If False, Cython extension may not be compiled correctly
# Reinstall with: pip install --force-reinstall --no-cache-dir pyfory

# For debugging, you can disable the Cython implementation before importing
import os
os.environ['ENABLE_FORY_CYTHON_SERIALIZATION'] = '0'
import pyfory  # Now uses the pure Python implementation

Q: Cross-language compatibility issues

# A: Use explicit type registration with consistent naming
f = pyfory.Fory(xlang=True)
f.register(MyClass, name="com.package.MyClass")  # Use same name in all languages

Q: Circular reference errors or duplicate data

Registered xlang schema objects and Python native objects both require reference tracking when object identity or cycles matter:

# A: Enable reference tracking for registered schema objects
f = pyfory.Fory(ref=True)

For arbitrary Python object graphs with circular references, use Python native mode:

f = pyfory.Fory(xlang=False, ref=True, strict=False)

# Example with circular reference
class Node:
    def __init__(self, value):
        self.value = value
        self.next = None

node1 = Node(1)
node2 = Node(2)
node1.next = node2
node2.next = node1  # Circular reference

data = f.dumps(node1)
result = f.loads(data)
assert result.next.next is result  # Circular reference preserved

Debug Mode

# Set environment variable BEFORE importing pyfory to disable Cython for debugging
import os
os.environ['ENABLE_FORY_CYTHON_SERIALIZATION'] = '0'
import pyfory  # Now uses pure Python implementation

# This is useful for:
# 1. Debugging protocol issues
# 2. Understanding serialization behavior
# 3. Development without recompiling Cython

Q: Schema evolution not working

# A: Xlang mode defaults to compatible schema evolution.
f = pyfory.Fory(xlang=True)

# Version 1: Original class
@dataclass
class User:
    name: str
    age: int

f.register(User, name="User")
data = f.dumps(User("Alice", 30))

# Version 2: Add new field (backward compatible)
@dataclass
class User:
    name: str
    age: int
    email: str = "unknown@example.com"  # New field with default

# Can still deserialize old data
user = f.loads(data)
print(user.email)  # "unknown@example.com"

Q: Type registration errors in strict mode

# A: Register all custom types before serialization
f = pyfory.Fory(strict=True)

# Must register before use
f.register(MyClass, type_id=100)
f.register(AnotherClass, type_id=101)

# Or disable strict mode (NOT recommended for production)
f = pyfory.Fory(strict=False)  # Use only in trusted environments

Contributing

Apache Fory™ is an open-source project under the Apache Software Foundation. We welcome all forms of contributions:

How to Contribute

  1. Report Issues: Found a bug? Open an issue
  2. Suggest Features: Have an idea? Start a discussion
  3. Improve Docs: Documentation improvements are always welcome
  4. Submit Code: See our Contributing Guide

For Contributors: See CONTRIBUTING.md for comprehensive development setup instructions

License

Apache License 2.0. See LICENSE for details.


Apache Fory™ - Blazing fast, secure, and versatile serialization for modern applications.

Links

Community

We welcome contributions! Whether it's bug reports, feature requests, documentation improvements, or code contributions, we appreciate your help.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyfory-1.6.0-cp314-cp314-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.14Windows x86-64

pyfory-1.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

pyfory-1.6.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

pyfory-1.6.0-cp314-cp314-macosx_11_0_universal2.whl (2.5 MB view details)

Uploaded CPython 3.14macOS 11.0+ universal2 (ARM64, x86-64)

pyfory-1.6.0-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

pyfory-1.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

pyfory-1.6.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

pyfory-1.6.0-cp313-cp313-macosx_11_0_universal2.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ universal2 (ARM64, x86-64)

pyfory-1.6.0-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

pyfory-1.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyfory-1.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

pyfory-1.6.0-cp312-cp312-macosx_11_0_universal2.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ universal2 (ARM64, x86-64)

pyfory-1.6.0-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

pyfory-1.6.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyfory-1.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pyfory-1.6.0-cp311-cp311-macosx_11_0_universal2.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ universal2 (ARM64, x86-64)

pyfory-1.6.0-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10Windows x86-64

pyfory-1.6.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyfory-1.6.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pyfory-1.6.0-cp310-cp310-macosx_11_0_universal2.whl (2.5 MB view details)

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

pyfory-1.6.0-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9Windows x86-64

pyfory-1.6.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyfory-1.6.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pyfory-1.6.0-cp39-cp39-macosx_11_0_universal2.whl (2.5 MB view details)

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

pyfory-1.6.0-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8Windows x86-64

pyfory-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pyfory-1.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

pyfory-1.6.0-cp38-cp38-macosx_11_0_universal2.whl (2.5 MB view details)

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

File details

Details for the file pyfory-1.6.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 14ab9d7d9afa608fac209b5d0f279007ddf2ee95bae8ff39e27d820b5ff7d258
MD5 f3226d34ea5860cb138764a668ac6fcb
BLAKE2b-256 c9189c631b50f3fc5343e3dee068533d45c5efb7b6a03ed7379fd0943df34705

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp314-cp314-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2f5bdd48be80a44dd38345915890f7cd43a30c01f08a60802fdb1af6b0f55f21
MD5 06d70d7461ab49cdf2666c2db7099c3b
BLAKE2b-256 e31eb6948f841dfdb114b166b46bdcc3337280497519a4de149af47bbc3d23a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c242febd406f70c5f93473ceb00cce5043594232a45509f58ce9192c524d58e1
MD5 e5c92e7a31783d29c587055c500296b1
BLAKE2b-256 b2fbaffcae9431809c7768a253f56f228cd7c03dca1488a2db518a6648d8d883

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp314-cp314-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp314-cp314-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 581bb367883b8dd6eb240422396ae0653b67748d471bc09124d84a7dc93d8224
MD5 25bb45701e8bd9a62a1317c500796bce
BLAKE2b-256 5d564e7c7833762baf9577b7d95756ea49764c4029e4e775c52d4bd87dc3c6f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp314-cp314-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fcacf22ee531292091b8730437cb1de857fa4d68e903f9db728ab2dd17a7b662
MD5 95a2184c00506f5e7f872a8899d2ca37
BLAKE2b-256 9ddc715854e2b0516365c78ec609e31db9864f4316254921ac23d7ff837c2ad8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp313-cp313-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e3573f357db45f5f33481f392ce16c0bd78a6c50f6818d3efdc745c7c05a549
MD5 bd91afef494a5edcf33217a31ec4aba1
BLAKE2b-256 c7b368d6dab391617fcb1a531e0858f9de35b08f8f449d54d56cb744cd9483af

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 564b2079e685b1324efb27a8c26241ada301000f75721bdc2b1d952d7614cf91
MD5 5fc316c531e1ebe189d4496faae62a74
BLAKE2b-256 e162658bada01bf0e2e8c336b7d987cc6f7d4ad8dc60458b0dfd2f0a1e6b1d56

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp313-cp313-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp313-cp313-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 e3ca850892a7636c3f1fed542700c12f2809e636fec2b7caf3b7b30b3a3badc6
MD5 7f2658f16315d1e3484590cd05e0e921
BLAKE2b-256 a53c700bdee0cfd02ee71255eec62db26314bc3a98d8595bcb1244a26cf626f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp313-cp313-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1229c0b71112464ee5c46ffb45bbc6705a5ce1a87ac84ee032351bed81bfe117
MD5 574f5416888e0fcf02713fb9538cb57e
BLAKE2b-256 a4cec2e99f6d894b1c82e760ca3cffc7d5db3d8e5512b3126d870168a940e9d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp312-cp312-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 38926447a02efddc8e35bc7fe9e1308ec75e2803ea8dae13f771a0a9fe513750
MD5 1362caa0b8b21bfa3f9c55e7c2ceacab
BLAKE2b-256 5a38155c347d718fbed75c6937bf23de78a43fec3d56c9255234adf92c7cac17

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 4eb0798a3f5f87328a1a5797d31e32edeadf2763483f8278c5cbd2a7b1d4c36f
MD5 3a64c0a521b883d930a17f9a4296fe87
BLAKE2b-256 8c6e91b78284d58ebf6a4ed7f169b3e0bc6fa44fb8162188dd0489b73b4c67df

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp312-cp312-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp312-cp312-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 6be751d2257e9033067acdfd33686bbbd40fcd44b1eb5a5df9aec82d781fa05d
MD5 71e6b69e1fe6c3564c605bb071ce2c40
BLAKE2b-256 70418ea2b1757fd4908b62d33f9edc3f990ae90b92bc0d11fe1cc4009acf19c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp312-cp312-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80943a5521187f00c43e7b7f6c11131c830386bc0db87bab4c6ce5b36a1688e8
MD5 70520254428456861928850849b12aef
BLAKE2b-256 c7253573ad7087c440e9b4d751f77bbb81b7ef26c12ef1b6e28a4df6b751e312

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp311-cp311-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 043af41f1fb05f9ad019c22f17d07de1562b60ec7be292120f02f9454121235b
MD5 64a8a5499cbcbac1f584424827436fb1
BLAKE2b-256 5ac35bbdbb13f2506360b8454acb0c223b24becf9e3f958e63a27af1484bbe51

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 bbdf74bb037609c11909a9e68a1a7c2edf083783766010537ba2a2eee9bbc306
MD5 4954996d1d490126166400db72c122fa
BLAKE2b-256 6ee2ac65ddf7d139d59ff16a1e5df406969d2b8a3d8758d24c63c1dadb0fc918

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp311-cp311-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp311-cp311-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 06009343791c905f616ee36cb96b26a6ed10b20f732b3c129c8bbd48c2b6c07e
MD5 a8af5ceeb1b85208a5a25e1c483a3ac6
BLAKE2b-256 8181da0f2c2fe7df66d2243fda71f8c529afcf33129acedc54fdbb094647a58a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp311-cp311-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e0c62e1f0ec62b882b3a22d879c73c93e0b0c52a707df38ff130d885b7d28324
MD5 e9880f01ce1f8ba943a93f43be3f6677
BLAKE2b-256 85cdeaaec700f12509c82fe60b8f0418b3afce405b12fe9b282a7a9c87317530

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp310-cp310-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 714fa1ac02d9f5f326c5316fe9752d616cb55ab577af46b044243acb1a3eab62
MD5 124ae34d020db4e9b5c6c98ccef84fe6
BLAKE2b-256 0e5f9322149bd428826e4b0a88533edd11cc46a2538866420f3a9d9dc50c0ab7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 bfe302f1618ec7a8055073e82fbfe2dd3ce6682f0a9f63f4403e6c434dee535b
MD5 f2a5cb21fff2c5198979a51fc64d9e99
BLAKE2b-256 ccc98089df47776d1f99c0607cd9b446bc88d223c6c01634657d76bb0077d2c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp310-cp310-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp310-cp310-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4c5047aa686f98675c53d2f54f69b495052f029c770886b467588bc1b683c7e3
MD5 4e227072760a40c01e6fd73f4db5f948
BLAKE2b-256 e1b4acda02ff37158da2be059971a4f379fa5de318e8959bc3edf15b18388314

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp310-cp310-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 291bb4421a8ecf72a2a4b8bb979b51f83e52bd73266cc27454b8d3507b755092
MD5 ad232ae91c0089a4ff0cdcd620c7d3df
BLAKE2b-256 3e0a054af38cf52fe80c74fe07c986289659cbb286886eaad07abf9562a388dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp39-cp39-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e580d4423d6a1199dd47f608cea3cd3dc7e6d82e776be4c6a920c5131247ee4b
MD5 6189a98a1b152b6ae01502f086561fd4
BLAKE2b-256 ef53a07c0322500134ec741fc4c4eb6a03030730a858ed6d6f9fd5a89ac09919

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e376a761a763f48b596dff79b508397c6bcd6fde0c715203a1c76cd72e99a0e9
MD5 95d27385b9fe2fd258f2cbc02d6e55e1
BLAKE2b-256 df25d29c1d634ef83772ec6feacd5c9edfeb7ea28756245b7618c00669d3dec9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp39-cp39-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp39-cp39-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 158b39bcf0ae9657d59423362769c53a78f115f2e1d6d93a0196c99d53593107
MD5 db140a3f6a7e694a7707d6092ab89778
BLAKE2b-256 5a66f4267fe7ce970fd4fac2acdeeca26db604e47d3538438e47e9336486ac26

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp39-cp39-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyfory-1.6.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfory-1.6.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 50de64e64a3be6491bb0e3eba106b631f0549b3b5e20beb5f3209e3955dcd670
MD5 fc0c47ab13b651aa4f93848e66685c45
BLAKE2b-256 9eaef2ff6ccd3f6b851e968e57880b897bfc6c774a63055d47a9f4768db9b261

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp38-cp38-win_amd64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96a4fd3dbde6956d830057e40302be26faac6f3ea7efe5136f9bdc1e7afa84c1
MD5 9afb251ff402d714bc3dc30a3852273a
BLAKE2b-256 46c03b221c031cce19b600a4a0500bb68558c666836fa8471d33e9cc86b47681

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91acdc030b7b2a20c2491cd9a36a3e97936625ad30b4a1267beeaf018d8a0cae
MD5 fea0c4c023e8043c46c9d7c0901a3d84
BLAKE2b-256 5681ec8147f7b5fb71c23dd1b7bd4ba88c1d26df70ec004c1aea15c8702fa1b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfory-1.6.0-cp38-cp38-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for pyfory-1.6.0-cp38-cp38-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 025a754bccc47f5331406cd4fe9e0aed50a801de6293bf5ce377367918d6e918
MD5 1ec86207d59f8c037ca11674e2b12636
BLAKE2b-256 10ea5bcb0fae029db385105a9020addb068b51b1fec6e85c2ffa8e02ffab4175

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfory-1.6.0-cp38-cp38-macosx_11_0_universal2.whl:

Publisher: release-python.yaml on apache/fory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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