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.37-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

sequenzo-0.1.37-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.37-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.9+ x86-64

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

Uploaded CPython 3.11Windows x86-64

sequenzo-0.1.37-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.37-cp311-cp311-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

sequenzo-0.1.37-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.37-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.9+ x86-64

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

Uploaded CPython 3.9Windows x86-64

sequenzo-0.1.37-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.37-cp39-cp39-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

sequenzo-0.1.37-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.37-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: sequenzo-0.1.37-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.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 15bfaa51437a75f3b6d193aadc04586422894b9fd5eadf742e40d587eb953fbc
MD5 2e197d0945687ded18d90a16c88a9f91
BLAKE2b-256 358a64e460f72c1cd899990bc2c929cb71ec3eba106bcfe0aeaab2ae2dca7348

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 abac86c9088006c077d19900490442379d4dc78f166f619b84184ec49cf8d92c
MD5 f06f42fa6d5818626fe1b4b53b7035b7
BLAKE2b-256 f979bbaf0892f394598569e0a97c34273e38066433d58f01275a68589523263a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bb2393cc8d7591e936d45531f9081d996aceb9f65b1df3970b58b80a6fbb7ed
MD5 871386e40334ed2f6f66abb9b295a64f
BLAKE2b-256 075d8a2aa43227893b683a7ae19ae9e1f0ad29f4968d323b6a94c67f6e99d466

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 78a65acf5f6788b88f9cc7180ab5770fd43bdb0ef14f5a054d25ea1112c0ddd7
MD5 80c100e6d2372d2cdebda7394a34b6eb
BLAKE2b-256 79bbfb71432706352eca18e5569b07b2a018d54641f53f34ea06bb68c41a7b18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sequenzo-0.1.37-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.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf0de3956ec38beb8e65a27f253b93c065879d38616613476d9a65bb05f75403
MD5 c0845c960b92004565c6ef25c545ec4b
BLAKE2b-256 6b706a9a3f48561e8ea8218575b25b827f56f12b9804989141418726e6a4a82e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 daf65355f70605878ca266da03f11803536d1d5e6439d9ba86a7d39e0103e767
MD5 c2436f677af91223a2156a047f1fa7cf
BLAKE2b-256 9c2c2bbcf1eaeebfb514111916bfbc637d761b3ed4699426018c48b097fa31b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33e74837fe13ed9082c2c9ed3238e5f0918919ff7840d19ec6bf8a904e294694
MD5 1b83e00d466729a6b3636a2875b789e8
BLAKE2b-256 ffe231288e94f2b24aa576145c80ca393680f0b9fc0956af08e126ddbb1fd1fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 785f3b0556ce6152088ccecd82dbd5eec85ea32136b8ddd3b9b69467acb4296a
MD5 11d3929ee5672c132a5335c30ff7e2d9
BLAKE2b-256 d72680a7566f9501b5622bdf77e756ff2e2d454edf1dfe61a9eeaf34fd7e6d6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sequenzo-0.1.37-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.37-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6aca89948d94450937b11dbe49f03f99dae77396854de3c8eb2256d650471580
MD5 72dd12cc41bed670f18dd1201f1503c0
BLAKE2b-256 a7aab6e3f8e6db042c8c97a385019426e2af144aa8e21ba3970682185050b945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd3a1ce3542a4cd0565f5337e738d25dae64398ff75974cf82a2bcb9c529a665
MD5 34a083d4f05b624fd338141a0cece66b
BLAKE2b-256 43a1bd12cee85aa5497d782188e4dd7022a222a49bb29eff94a96815bd2fe67a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43638f0c9dfe00bc367adc1b0ce0f9e232287f7a6d932a196624cad48d122f21
MD5 ae3dd4dab44566ec15ecafe9e982d169
BLAKE2b-256 fc35bbae32098b80f9db4fdc2153766c776447a2bec7dd37928fd1874e913b08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 050c5756f82b768ea7d4d043cf4f1f7daf94ce882750959b29e4f6602a386a0a
MD5 2c4422c9799a6b6dfafd018371193f70
BLAKE2b-256 14fc1259123d3ed111adad3a855997d684eac4a907ee7cd052a6c417a2fd8ddf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sequenzo-0.1.37-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.37-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23b9b7d70cab8e282297fd7a48559e5887c5f06cafd86c29884280209d3d2ebf
MD5 11c376a1bb924de38be070ff9f552be1
BLAKE2b-256 dad32b5be249ecee4e45c7afc31ded66501aef95a0edefd4b185e6e745b9f0aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9975b7b434adcfd86cab30cbbf85f7e2489f5e540c6056e0872fdc6e244cc562
MD5 a206fc2d249ee631b8f9f0ae194a6feb
BLAKE2b-256 55f7f3e6d6e8bb4c533877fd2059d5e630b0ef983628d68ce1295152ca861257

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bc77a0da79fb4fe3b734fc9b86f143499368b8d1a830a961c61b4a7b010bd83
MD5 8a5d9a450428003eea3f4d48aba3f0c7
BLAKE2b-256 71101dccb1ce9e0d11473904bde6d2789f908069b930b376d068ee300a810a11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequenzo-0.1.37-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 234818f7950e4e5671f312b59831526315b99bbb3bc83585a8f685564d52ca46
MD5 5b8a65ce5193039447db2c90f9a3a9b6
BLAKE2b-256 ce8945b674bab1e4402abf15f89c0104ae523f0f5f2117936d82d60548d380c6

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