The `snowflake-legacy` package (current version 1.0.2) is a transitional Python library providing limited backward compatibility for users of the *original* `snowflake` PyPI package, which has since been renamed to `snowflake-uuid`. The original package was designed for generating persistent, machine-specific UUIDs (often referred to as 'snowflakes'). This `snowflake-legacy` package itself is deprecated, primarily serving as a temporary bridge after the `snowflake` PyPI name was transferred to Snowflake, Inc. Users are strongly advised to migrate to `snowflake-uuid` for continued functionality and support. It has an effectively abandoned release cadence.
pip install snowflake-legacyVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the `snowflake-legacy` package to read a machine's snowflake ID. Note that this package does not generate IDs; it only reads them, typically from `/etc/snowflake`, which would usually be created by the `snowflake-uuid` package. It will raise a `FileNotFoundError` if the ID file doesn't exist. The `make_snowflake()` function is explicitly disabled.
Migrate to `snowflake-uuid` and use its API for generating new snowflake IDs.
Update your project dependencies from `snowflake-legacy` to `snowflake-uuid` as soon as possible.
Ensure that the `snowflake-uuid` package is installed and has run at least once to create the `/etc/snowflake` file if you intend to use `snowflake-legacy` to read it. For generation, switch to `snowflake-uuid`.
Always explicitly install `snowflake-uuid` for machine-specific UUID generation, or `snowflake-legacy` if specifically targeting the deprecated transitional package.
To generate UUIDs, install `snowflake-uuid` (`pip install snowflake-uuid`) and use `import snowflake_uuid`. If you intended to use the deprecated legacy bridge, ensure it's installed (`pip install snowflake-legacy`) and use `import snowflake_legacy`.
The `generate()` function is part of the `snowflake-uuid` package. Install it (`pip install snowflake-uuid`) and use `snowflake_uuid.generate()`. If you need to maintain the `snowflake` alias for compatibility with older code, use `import snowflake_uuid as snowflake`.
Install the package using `pip install snowflake-legacy` and ensure your import statement is `import snowflake_legacy`.
No dependency data recorded yet.