Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
HHongSeungWoo committed Dec 27, 2023
1 parent b33f6c6 commit 88a473d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ name: CI

on:
push:
branches:
- nop
tags:
- '*'
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
workflow_dispatch:

permissions:
contents: read
contents: write

jobs:
linux:
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "pkpy"
name = "fastid"
version = "0.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "pkpy"
name = "fastid"
crate-type = ["cdylib"]


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"

[project]
name = "pkpy"
name = "fastid"
description = "This is a library for quickly generating unique IDs in Python."
authors = [{ name = "Seungwoo Hong", email = "[email protected]" }]
requires-python = ">=3.8"
Expand Down
4 changes: 2 additions & 2 deletions python/tests/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkpy
import fastid
from ulid import microsecond

if __name__ == '__main__':
Expand All @@ -15,7 +15,7 @@
t = time.time()

for i in range(1000):
a = pkpy.ulid()
a = fastid.ulid()
print(a)

print(time.time() - t)
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn get_ulid() -> PyResult<String> {
}

#[pymodule]
fn pkpy(_py: Python, m: &PyModule) -> PyResult<()> {
fn fastid(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_function(wrap_pyfunction!(get_ulid, m)?)?;
Ok(())
}

0 comments on commit 88a473d

Please sign in to comment.