Skip to content

Commit

Permalink
Merge branch 'release/v0.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
klich3 committed Jan 3, 2024
2 parents cbc56e6 + 1ec56d7 commit 6b17fb5
Show file tree
Hide file tree
Showing 13 changed files with 157 additions and 1 deletion.
18 changes: 18 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cff-version: 1.2.0
title: Python-ACK
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Anton
family-names: Sychev
email: anton@sychev.xyz
repository-code: "https://github.com/klich3/python-ack"
abstract: ACK is a code-searching tool, similar to grep but optimized for programmers searching large trees of source code.
keywords:
- storage
- reegexp
- search
license: MIT
version: 0.0.1
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) <2024> Anton Sychev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include LICENSE
include CITATION.cff
include README.md
include *.toml
recursive-include src *.py
recursive-include src/python-ack *.py
prune */__pycache__
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# python-ack
# Python-ACK
ACK is a code-searching tool, similar to grep but optimized for programmers searching large trees of source code.

27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "python-ack"
version = "0.0.1"
authors = [
{ name="Anton Sychev", email="anton@sychev.xyz" },
]
description = "Using the filesystem as a searchable database."
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["regexp", "file", "document", "search"]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.optional-dependencies]
build = ["build", "twine"]

[project.urls]
Homepage = "https://github.com/klich3/python-ack"
Issues = "https://github.com/klich3/python-ack/issues"
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile pyproject.toml
#
23 changes: 23 additions & 0 deletions src/python-ack/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""
█▀ █▄█ █▀▀ █░█ █▀▀ █░█
▄█ ░█░ █▄▄ █▀█ ██▄ ▀▄▀
Author: <Anton Sychev> (anton at sychev dot xyz)
__init__.py (c) 2024
Created: 2024-01-02 17:37:05
Desc: Inilization of RocketStore
"""

__all__ = ["python-ack"]

from .__version__ import (
__author__,
__author_email__,
__build__,
__copyright__,
__description__,
__title__,
__url__,
__version__,
__license__,
)
29 changes: 29 additions & 0 deletions src/python-ack/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""
█▀ █▄█ █▀▀ █░█ █▀▀ █░█
▄█ ░█░ █▄▄ █▀█ ██▄ ▀▄▀
Author: <Anton Sychev> (anton at sychev dot xyz)
__init__.py (c) 2024
Created: 2024-01-02 17:37:05
Desc: Inilization of RocketStore
"""

import re
import sys
import datetime
from subprocess import Popen
from collections import deque
from multiprocessing import Process


class ack:
def __init__(
self,
regex,
number_processes=10,
search_binary=False,
use_ansi_colors=True,
exclude_path=[],
):
print("ok")
pass
19 changes: 19 additions & 0 deletions src/python-ack/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
█▀ █▄█ █▀▀ █░█ █▀▀ █░█
▄█ ░█░ █▄▄ █▀█ ██▄ ▀▄▀
Author: <Anton Sychev> (anton at sychev dot xyz)
__version__.py (c) 2024
Created: 2024-01-02 17:25:14
Desc: Versions
"""

__title__ = "Python-ACK"
__description__ = "Python-ACK is a code-searching tool, similar to grep but optimized for programmers searching large trees of source code."
__url__ = "https://github.com/klich3/python-ack"
__version__ = "0.0.1"
__build__ = 0x00000
__author__ = "Anton Sychev"
__author_email__ = "anton@sychev.xyz"
__copyright__ = "Copyright Anton Sychev"
__license__ = "MIT"

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
14 changes: 14 additions & 0 deletions src/python-ack/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
█▀ █▄█ █▀▀ █░█ █▀▀ █░█
▄█ ░█░ █▄▄ █▀█ ██▄ ▀▄▀
Author: <Anton Sychev> (anton at sychev dot xyz)
test.py (c) 2024
Created: 2024-01-03 00:26:05
Desc: test file
Docs: documentation
"""

from .pythonack import ack

print(ack)

0 comments on commit 6b17fb5

Please sign in to comment.