Skip to main content

Ice for Python

Examples | Documentation | API Reference | Building from source

The Ice framework provides everything you need to build networked applications, including RPC, pub/sub, server deployment, and more.

Ice for Python is the Python implementation of the Ice framework.

Sample Code

// Slice definitions (Greeter.ice)

module VisitorCenter
{
    /// Represents a simple greeter.
    interface Greeter
    {
        /// Creates a personalized greeting.
        /// @param name The name of the person to greet.
        /// @return The greeting.
        string greet(string name);
    }
}
# Client application (main.py)
import Ice
import asyncio
import getpass
import sys

import VisitorCenter


async def main():
    async with Ice.Communicator(sys.argv, eventLoop=asyncio.get_running_loop()) as communicator:
        greeter = VisitorCenter.GreeterPrx(communicator, "greeter:tcp -h localhost -p 4061")
        greeting = await greeter.greetAsync(getpass.getuser())
        print(greeting)


if __name__ == "__main__":
    asyncio.run(main())
# Server application (main.py)

import Ice
import chatbot
import sys


def main():
    with Ice.Communicator(sys.argv) as communicator:
        adapter = communicator.createObjectAdapterWithEndpoints("GreeterAdapter", "tcp -p 4061")
        adapter.add(chatbot.Chatbot(), Ice.Identity(name="greeter"))

        adapter.activate()
        print("Listening on port 4061...")

        try:
            communicator.waitForShutdown()
        except KeyboardInterrupt:
            print("Caught Ctrl+C, exiting...")


if __name__ == "__main__":
    main()
# Greeter implementation (chatbot.py)
import VisitorCenter


class Chatbot(VisitorCenter.Greeter):
    def greet(self, name: str, current: Ice.Current) -> str:
        print(f"Dispatching greet request {{ name = '{name}' }}")
        return f"Hello, {name}!"

Download files

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

Source Distribution

zeroc_ice-3.8.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

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

zeroc_ice-3.8.3-cp314-cp314-win_amd64.whl (23.4 MB view details)

Uploaded CPython 3.14Windows x86-64

zeroc_ice-3.8.3-cp314-cp314-macosx_10_15_universal2.whl (4.6 MB view details)

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

zeroc_ice-3.8.3-cp313-cp313-win_amd64.whl (23.1 MB view details)

Uploaded CPython 3.13Windows x86-64

zeroc_ice-3.8.3-cp313-cp313-macosx_10_13_universal2.whl (4.6 MB view details)

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

zeroc_ice-3.8.3-cp312-cp312-win_amd64.whl (23.1 MB view details)

Uploaded CPython 3.12Windows x86-64

zeroc_ice-3.8.3-cp312-cp312-macosx_10_13_universal2.whl (4.6 MB view details)

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

File details

Details for the file zeroc_ice-3.8.3.tar.gz.

File metadata

  • Download URL: zeroc_ice-3.8.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for zeroc_ice-3.8.3.tar.gz
Algorithm Hash digest
SHA256 b6b4589585d1fe3af7831adeb5d0d4da0d3fe59cf2e0660e9207059123e50711
MD5 655f539c4fccc6f250a148966a4b02ba
BLAKE2b-256 d831fc7367f5df50d8d1f63eb1d054a11200e70ededeba48260a6ebd7bc6b512

See more details on using hashes here.

File details

Details for the file zeroc_ice-3.8.3-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: zeroc_ice-3.8.3-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 23.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for zeroc_ice-3.8.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6e0859eba2c02d39d61946897d62ff740c5d09d90038a8b804eac456ae0923e9
MD5 9b231c25cd1907f8a9e79f91884e4878
BLAKE2b-256 9191c6307bd733aa724bb14f489585f40e34bcfedde6a7b4676ac48738f225c1

See more details on using hashes here.

File details

Details for the file zeroc_ice-3.8.3-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for zeroc_ice-3.8.3-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f48fd8f7249e43f1db21fcdf682a9853a5d9a9325a4ddbf7a0789489ff66338f
MD5 267ba3e5b4dd3883c17808db7d29b8b5
BLAKE2b-256 b8a7a2789f0a1b6735a48c826e69a760b3835e22c921591851af40c4b8783b8b

See more details on using hashes here.

File details

Details for the file zeroc_ice-3.8.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: zeroc_ice-3.8.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 23.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for zeroc_ice-3.8.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9f03f86be5f9daff37c85e69c7815586b372ab467bc1853553236c3047c7d437
MD5 5767629cbe1394408fe46cc461f99cb5
BLAKE2b-256 fdf2694fa21d48a525a46fc8cb82805397f29843105a2caa189a95c178755763

See more details on using hashes here.

File details

Details for the file zeroc_ice-3.8.3-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for zeroc_ice-3.8.3-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 d0e15f29d4391258b13dfdcc16969337458e164698652f6691698a00986e028e
MD5 de6b58f45ba31cc86204c1ccc82128e7
BLAKE2b-256 d5c8e738b356b74809090f2147d8c969c82ab881b49ae9ac83d1d73cf71c7095

See more details on using hashes here.

File details

Details for the file zeroc_ice-3.8.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: zeroc_ice-3.8.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 23.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for zeroc_ice-3.8.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7cdccf692947d73602bb402e37792fc1b5b479cc0999dbbe1920e2095cc5c451
MD5 cd154c59a73af1da7cadc76292036012
BLAKE2b-256 b53d83c68fa905be27b0f721bcb18e8a9a8184a899012bd4904de69b192df104

See more details on using hashes here.

File details

Details for the file zeroc_ice-3.8.3-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for zeroc_ice-3.8.3-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 294171a59673f419b2f614eb94b468a5be454633fa834f3d14768efad1780499
MD5 1e5d313674078c8910460a24ecf62721
BLAKE2b-256 4e367c39157c3ac09898e2784c3b62ea8b64d872d1e9ec11c736b135d3af6d4d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.8.3 This release

7 files

3.8.2

7 files

3.8.1

7 files

3.8.0.post1

7 files

3.8.0

7 files

3.7.11

5 files

3.7.10.1

7 files

3.7.10

6 files

3.7.9.1

5 files

3.7.9

4 files

3.7.8.2

1 file

3.7.8

4 files

3.7.7

4 files

3.7.6

6 files

3.7.5

6 files

3.7.4

9 files

3.7.3

12 files

3.7.2

11 files

3.7.1

13 files

3.7.0.1

7 files

3.7.0

6 files

3.6.5

7 files

3.6.4

6 files

3.6.3

8 files

3.6.2.1

8 files

3.6.2

8 files

3.6.1

6 files

3.6.0

8 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page