Skip to content

Commit

Permalink
add: keccaky lib
Browse files Browse the repository at this point in the history
  • Loading branch information
olivmath committed Jan 1, 2024
1 parent 2eb2e09 commit ec914d3
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ assignees: ""

## Describe what you expect! (Example)

**I want Liby to work like this:**
**I want keccaky to work like this:**

```py
import liby
import keccaky

data = []
result = liby.new_feature(data)
result = keccaky.new_feature(data)

assert result == ["new data very cool"]
```
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
hooks:
- id: pytest
name: Unit Tests (Pytest)
entry: pytest -m "not benchmark and not merkletreejs"
entry: pytest
language: system
pass_filenames: false
always_run: true
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Lucas Oliveira
Copyright (c) 2024 Lucas Oliveira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# Template for automatic library deployment in PyPi
# Keccaky

**RUN BEFORE COMMIT**
Secure and easy-to-use keccak

## Docs

**INSTALL**

```
pip install keccaky
```

```
poetry install
pre-commit install
poetry add keccaky
```

**USE**


```python
import keccak

assert keccak("Hello, world") == bytes.fromhex("db99debe7fc546756227481ecaf5136f5b86180d99c5666a14421367c7187e5c")
assert keccak("Hello, world").hex() == "db99debe7fc546756227481ecaf5136f5b86180d99c5666a14421367c7187e5c"
```
5 changes: 0 additions & 5 deletions init.sh

This file was deleted.

Empty file added keccaky/__init__.py
Empty file.
5 changes: 0 additions & 5 deletions liby/__init__.py

This file was deleted.

15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[tool.poetry]
name = "liby"
version = "0.2.0"
description = "Template for automatic library deployment in PyPi"
name = "keccaky"
version = "0.1.0"
description = "Secure and easy-to-use keccak"
authors = ["Lucas Oliveira <[email protected]>"]
repository = "https://github.com/olivmath/liby.git"
documentation = "https://pypi.org/project/liby/"
repository = "https://github.com/olivmath/keccaky.git"
documentation = "https://pypi.org/project/keccaky/"
readme = "README.md"
license = "MIT"
keywords = ["template", "lib", "python", "deploy", "pipeline"]
keywords = ["keccak", "ethereum", "sha3", "hash"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand All @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Security :: Cryptography"
]

[tool.poetry.dependencies]
Expand Down
5 changes: 0 additions & 5 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from liby import version


def test_version():
version == "0.1.0"

0 comments on commit ec914d3

Please sign in to comment.