Skip to main content

A fast, scalable and intuitive Python package for social sequence analysis.

Project description

Sequenzo Logo

PyPI - Version Downloads License

Sequenzo: Fast, scalable, and intuitive social sequence analysis in Python

Sequenzo is a high-performance Python package designed for social sequence analysis.

Its methodological foundations build upon prior work in the R ecosystem, especially the TraMineR (Gabadinho et al. 2011) R package, which established many of the core concepts, representations, and analytical tools in sequence analysis, as well as subsequent methodological extensions developed within TraMineRextras (Gabadinho et al. 2021).

Sequenzo also draws inspiration from WeightedCluster (Studer, 2013) for typology construction, seqHMM (Helske & Helske, 2019) for probabilistic modeling using hidden Markov models, and ggseqplot (Raab, 2022) for the design of relative frequency sequence visualizations (Fasang & Liao, 2013).

We gratefully acknowledge these pioneering contributions and the broader community in social sequence analysis whose work enables everything we do. Sequenzo seeks to expand the social sequence analysis ecosystem by connecting long-standing methodological traditions with the computational practices of the Python data science community, particularly in machine learning and deep learning.


Sequenzo is built to analyze any sequence of categorical events, from individual career paths and migration patterns to corporate growth and urban development. Whether you are working with people, places, or policies, Sequenzo helps uncover meaningful patterns efficiently.

Sequenzo outperforms traditional R-based tools in social sequence analysis, delivering faster processing and superior efficiency, especially for large-scale datasets. No big data? No problem. You don’t need big data to benefit as Sequenzo is designed to enhance sequence analysis at any scale, making complex methods accessible to everyone.

🚀 Explore the official documentation at sequenzo.yuqi-liang.tech
with tutorials, practical examples, and API references to help you get started quickly.

📖 Available in English and Chinese, our docs are written to be approachable, practical, and easy to follow.

✍️ Regarding how to cite us, please see here.

✨ Be part of the Sequenzo community

Join our Discord channel to iscuss ideas, get help, and hear about upcoming Sequenzo versions, tutorials, and workshops first.

➡️ https://discord.gg/RHfDuu4ETz

Target Users

Sequenzo is designed for:

  • Quantitative researchers in sociology, demography, political science, economics, management, etc.
  • Data scientists, data analysts, and business analysts working on trajectory/time-series clustering
  • Educators teaching courses involving social sequence data
  • Users familiar with R packages such as TraMineR who want a Python-native alternative

Why Choose Sequenzo?

🚀 High Performance

Leverages Python’s computational power to achieve 8× faster processing than traditional R-based tools like TraMineR.

🎯 Easy-to-Use API

Designed with simplicity in mind: intuitive functions streamline complex sequence analysis without compromising flexibility.

🌍 Flexible for Any Scenario

Perfect for research, policy, and business, enabling seamless analysis of categorical data and its evolution over time.

Platform Compatibility

Sequenzo provides pre-built Python wheels for maximum compatibility — no need to compile from source.

Platform Architecture Python Versions Status
macOS Intel && Apple Silicon (64-bit) 3.9, 3.10, 3.11, 3.12 ✅ Pre-built wheel
Windows AMD64(64-bit) 3.9, 3.10, 3.11, 3.12 ✅ Pre-built wheel
Linux (glibc) x86_64 (standard Linux) 3.9, 3.10, 3.11, 3.12 ✅ Pre-built wheel
Linux (musl) x86_64 (Alpine Linux) 3.9, 3.10, 3.11, 3.12 ✅ Pre-built wheel

What do these terms mean?

  • macosx_arm64 (macOS): One wheel supports Apple Silicon Macs.
  • macosx_x86_64 (macOS): One wheel supports Intel Macs.
  • manylinux2014_x86_64 (glibc-based Linux): Compatible with most mainstream Linux distributions (e.g., Ubuntu, Debian, CentOS).
  • musllinux_1_2 (musl-based Linux): For lightweight Alpine Linux environments, common in Docker containers.
  • AMD64 (Windows): Standard 64-bit Windows system architecture.

All of these wheels are pre-built and available on PyPI — so pip install sequenzo should work on supported platforms, without needing a compiler.

Windows (win32) and Linux (i686) are dropped due to:

  • Extremely low usage in modern systems (post-2020)
  • Memory limitations (≤ 4GB) unsuitable for scientific computing workloads
  • Increasing incompatibility with packages such as numpy, scipy, and pybind11
  • Frequent build failures and maintenance overhead in CI/CD pipelines

Installation

If you haven't installed Python, please follow Yuqi's tutorial about how to set up Python and your virtual environment.

Once Python is installed, we highly recommend using PyCharm as your IDE (Integrated Development Environment — the place where you open your folder and files to work with Python), rather than Visual Studio. PyCharm has excellent built-in support for managing virtual environments, making your workflow much easier and more reliable.

In PyCharm, please make sure to select a virtual environment using Python 3.9, 3.10, or 3.11 as these versions are fully supported by sequenzo.

Then, you can open the built-in terminal by clicking the Terminal icon terminal icon in the left sidebar (usually near the bottom). It looks like a small command-line window icon.

Once it’s open, type the following to install sequenzo:

pip install sequenzo

If you have some issues with the installation, it might because you have both Python 2 and Python 3 installed on your computer. In this case, you can try to use pip3 instead of pip to install the package.

pip3 install sequenzo

Documentation

Explore the full Sequenzo documentation here. Even though the documentation website is still under construction, you can already find some useful information there.

Where to start on the documentation website?

  • New to Sequenzo or social sequence analysis? Begin with "About Sequenzo" → "Quickstart Guide" for a smooth introduction.
  • Got your own data? After going through "About Sequenzo" and "Quickstart Guide", you are ready to dive in and start analyzing.
  • Looking for more? Check out our example datasets and tutorials to deepen your understanding.

For Chinese users, additional tutorials are available on Yuqi's video tutorials on Bilibili.

Join the Community

💬 Have a question or found a bug?

Please submit an issue on GitHub Issues by following this instruction.

  • We will respond as quickly as possible.
  • For requests that are not too large, we aim to fix or implement the feature within one week from our response time.
  • Timeline may vary depending on how many requests we receive.

🌟 Enjoying Sequenzo?

Support the project by starring ⭐ the GitHub repo and spreading the word!

🛠 Interested in contributing?

Check out our contribution guide for more details (work in progress).

  • Write code? Submit a pull request to enhance Sequenzo.
  • Testing? Try Sequenzo and share your feedback. Every suggestion counts!

If you're contributing or debugging, use:

pip install -r requirements/requirements-3.10.txt  # Or matching your Python version

For standard installation, use:

pip install .  # Uses pyproject.toml

Team

Paper Authors

Package Contributors

Coding contributors:

Documentation contributors:

Others

  • With special thanks to our initial testers (alphabetically ordered): Joji Chia, Kass Gonzalez, Sinyee Lu, Sohee Shin
  • Website and related technical support: Mactavish
  • Sequence data sources compilation - History: Jingrui Chen
  • Visual design consultant: Changyu Yi
  • Assistance with early-stage performance testing of Sequenzo: Qian Wang, Ruxin Xue, Min Zhao, Tia (Qi Dai)

Acknowledgements

Project details


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.

sequenzo-0.1.38-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

sequenzo-0.1.38-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

sequenzo-0.1.38-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

sequenzo-0.1.38-cp312-cp312-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

sequenzo-0.1.38-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

sequenzo-0.1.38-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

sequenzo-0.1.38-cp311-cp311-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

sequenzo-0.1.38-cp311-cp311-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

sequenzo-0.1.38-cp310-cp310-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.10Windows x86-64

sequenzo-0.1.38-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

sequenzo-0.1.38-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

sequenzo-0.1.38-cp310-cp310-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

sequenzo-0.1.38-cp39-cp39-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.9Windows x86-64

sequenzo-0.1.38-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

sequenzo-0.1.38-cp39-cp39-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

sequenzo-0.1.38-cp39-cp39-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

Details for the file sequenzo-0.1.38-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: sequenzo-0.1.38-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for sequenzo-0.1.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b323e02c91eac8fd5fee0abf94bf6ca8b4bc49db730c6a4fd98736ba1f22c8a1
MD5 f72793ba246fff03755050ef01cad796
BLAKE2b-256 3e9c5edda99e0069fa35372cc27f1a60ad63872877e0c3c01ff526c0d6076b11

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23d86979cb12aa57ee2a130671a25a90565ce8821a32c54580280cc34d042365
MD5 70366b9ea96d8415afdb7eff2cee09dc
BLAKE2b-256 f9e2232f536743cf4824eeb2e5c576fb5ae951ed9f01098f059f974aef97926e

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 761c83ea6f13b6eb646ba62d5b9abadb868c52bbd5d86d41d7cf639faecff5ea
MD5 400f0f31b936bec6ce48fc7a54065c1e
BLAKE2b-256 bdede7ab17bcacae54bc132a3f996dafa9c31a3e181b7fd1abe4b5bc9d142dcd

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8dffcbbc1b8d0cbe48175879246a9cd0f9fc731c01ffbf897dcf80783854f15b
MD5 468a8f4d79979f97447e4c4a5f4a29bd
BLAKE2b-256 e61bfbc2609635aae069bdf648dedf64353b6750501954b5b0da92a846a9e046

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: sequenzo-0.1.38-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for sequenzo-0.1.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c57c67b785671339a02f3b2dc0a1a84f379bd5e96316cdd74baa0ded016539b
MD5 c62fa2b49598b0a8868639b19aea755a
BLAKE2b-256 ff3a4536deee8e2c50925b66cf578960adc8eee499d3fc87de4f3f1ea4edba5a

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 60c6db89ab8c838c4db27d9bf16dae2a41c5e251d2a2e2a964ae94b36b9df691
MD5 7eef361253da4d6f84afaf5af158d1db
BLAKE2b-256 f3226e7956f78c341e8bc5082482848dd2ca3dfec2b994a8b276b865c71e0951

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68b5abbb318cca9b296df01a2d1c81bf7afbb527db82ee6814a2978ebc3814a4
MD5 f6d33e9c57a2163c8bf4f6eae100520e
BLAKE2b-256 f0f771d250ac5abf437409192d1218cb511628e6d70fbd21ebe6d5079fd36a92

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0af90a329fd68036bc7de48cc6a4e905515100301de16f396da9f23f2f709449
MD5 da51c023c7943f57b7817cacd9487a35
BLAKE2b-256 18b3aaf8bde23ac7e9d674d0b080f6779825a641782774ab33c31c4903f64f86

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: sequenzo-0.1.38-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for sequenzo-0.1.38-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a10b9f0b0a7acf7fd2e841a3ed704b4cf21e400fabb0d241aba2bbe7eac00e6e
MD5 7463792cb4c9f67705de53d95f8925fb
BLAKE2b-256 6ab511919c1043f92188e6b85369ad248727cb61474f0e67e49a4aa0f94d7f6e

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7c7a31ba1ad2861811389626f9be90c27d75745843236f7bc23df078479ebe6
MD5 e0c8ab803f3bb6f0c64072f858acec04
BLAKE2b-256 c9f00b929829b19be29f72e44c73882e7be93729207b7011dec6b1aabac8d8a7

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5753f7c5c9100b5ae9f0443796e226953125c3aec3097b11025745f826a26d45
MD5 302938fd447ccc02c1ac3ec409b46002
BLAKE2b-256 e3be3c7e4fe70751a9cf892ec0d29bdaa315d5c03e25c419fb89dc8aab141f29

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 428cb67dbac80421fbe3a740c5c883d2a9c4d924d7838d7c4bfc93903e0cd265
MD5 a8e7a3be8f2595c47ef1badd9a601f3e
BLAKE2b-256 12321c98b5fc8287e6497868b88e6f73e2f086232001cd5daa20b7632211d5d5

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: sequenzo-0.1.38-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for sequenzo-0.1.38-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8ee77ceb664675dae349b8af02d3d1f4db625ebdaa013805b005f76c10aba760
MD5 bb5e2e76de6159a5bd8f89d55b0f9483
BLAKE2b-256 f66145c69a16874fc6cd0d00806fd6be9505661b56013a74b6eeddfa39be8aeb

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc1e0def5ce794a8937e9f550a3220b3d8914a2d7617ad7fd56a56dd68da65b2
MD5 ebe0e5a8c7f8963b1d3284b4fe70ddc8
BLAKE2b-256 d1f7609fd98150f2453cf20bec619da3fc6d26da3ff94c2b1f1c5100aad7b195

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32201ab5294fb0540155f9ae2c9a2b86cc876029a7be932e6c321ffddb1be3e5
MD5 ff1d5694c0e454e67ee12fb4b2a9180b
BLAKE2b-256 8dc830e527163d07098c254826f8706d45079bd81f479bcbe551c15b7487b8ac

See more details on using hashes here.

File details

Details for the file sequenzo-0.1.38-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sequenzo-0.1.38-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a07551bd82bc3a675b40fff96768725adbef58d08131d118a6a77b982da11178
MD5 6b9864ea08c745fedaf5ee37ce5526ef
BLAKE2b-256 f47f28a4bc93693a15fd082d552e289a914e5555552795de641d04545811a199

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