python-ulid icon indicating copy to clipboard operation
python-ulid copied to clipboard

ULID implementation for Python

Results 26 python-ulid issues
Sort by recently updated
recently updated
newest added

Implement the hash interface to resolve #3.

Suggest you implement __hash__ to allow use as a dictionary key. I am getting the following issue using ULID as a custom type in a SqlAlchemy Model. ``` if key...

Like so: ```shell $ python -m ulid 01BTGNYV6HRNK8K8VKZASZCFPE ``` I guess implementing a `__main__` which returns `ULID.from_datetime(datetime.now())` by default. It would ease the generation when calling from a Makefile for...

ULID spec now calls out entropy monotonicity for subsequent ULIDs generated in the same millisecond. It wasn't immediately clear to me how to approach that here, but I spent a...

Both this project and https://github.com/oklog/ulid/ build executables called `ulid`. The purpose of this issue is to open a discussion about possibly renaming one or both of them so that they...

Fix #12. The old way was not wrong, but this is indeed tidier. Adding a new constant `NANOSECS_IN_MILLISECS` is not required, but seemed to be the best fit for the...

It is faster and without floating point. Just `time.clock_gettime_ns() // 1000000` to get milliseconds.

Add a link to https://github.com/oklog/ulid and to the implementations they cite as prior art.

Since - the canonical name of the package is [`python-ulid`](https://pypi.org/project/python-ulid/) - the importable module name is `ulid` - there exists a [*different* package with canonical name `ulid`](https://pypi.org/project/ulid/) there is the...

The package [`ulid-py`](https://github.com/ahawker/ulid) has the classmethod [`parse`](https://github.com/ahawker/ulid/blob/master/ulid/api/api.py#L64), used when the caller is trying to parse a ULID from a value when they're unsure what format/primitive type it will be given...