Skip to content

Commit

Permalink
Merge pull request #165 from evo-company/164-remove-old-features
Browse files Browse the repository at this point in the history
Remove code for old features that are not used anymore
  • Loading branch information
kindermax authored Sep 15, 2024
2 parents 063f7c9 + 215656e commit a891bd7
Show file tree
Hide file tree
Showing 42 changed files with 294 additions and 2,076 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV PDM_USE_VENV=no
ENV PYTHONPATH=/work/__pypackages__/3.7/lib

RUN apt-get update && apt-get install -y libpq-dev && \
pip install --upgrade pip==${PIP_VERSION} && pip install pdm==${PDM_VERSION}
pip install --upgrade pip==${PIP_VERSION} && pip install pdm==${PDM_VERSION}

# for pyproject.toml to extract version
COPY hiku/__init__.py ./hiku/__init__.py
Expand All @@ -26,7 +26,7 @@ RUN pdm sync -G dev

FROM base as docs

RUN pdm sync -G docs
RUN pdm sync -G dev -G docs

FROM base as tests

Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ recursive-include hiku *.js
recursive-include hiku *.jsx
recursive-include hiku *.css
recursive-include hiku *.html
recursive-include hiku *.proto
13 changes: 6 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Optional dependencies
~~~~~~~~~~~~~~~~~~~~~

* `graphql-core` - for GraphQL support
* `protobuf` - for Protobuf support
* `sqlalchemy` - for SQLAlchemy support as a data-source
* `aiopg` - for async PostgreSQL support with `aiopg`
* `asyncpg` - for async PostgreSQL support with `asyncpg`
Expand All @@ -39,7 +38,7 @@ Highlights
~~~~~~~~~~

* Not coupled to a single specific query language
* Flexibility in result serialization, including binary formats
* Flexibility in result serialization
* Natively uses normalized result representation, without data duplication
* All concurrency models supported: coroutines, threads
* Parallel query execution
Expand Down Expand Up @@ -85,22 +84,22 @@ Query:

.. code-block:: python
from hiku.engine import Engine
from hiku.schema import Schema
from hiku.builder import Q, build
from hiku.executors.sync import SyncExecutor
engine = Engine(SyncExecutor())
schema = Schema(SyncExecutor(), GRAPH)
result = engine.execute_query(GRAPH, build([
result = schema.execute_sync(build([
Q.characters[
Q.name,
Q.species,
],
]))
# use result in your code
for character in result.characters:
print(character.name, '-', character.species)
for character in result.data["characters"]:
print(character["name"], '-', character["species"])
Output:

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
version: "3.7"

services:
base: &base
Expand Down
36 changes: 17 additions & 19 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
]

autoclass_content = 'both'
autodoc_member_order = 'bysource'
autoclass_content = "both"
autodoc_member_order = "bysource"

intersphinx_mapping = {
'python': ('https://docs.python.org/3.6', None),
'aiopg': ('http://aiopg.readthedocs.io/en/stable', None),
'sqlalchemy': ('http://docs.sqlalchemy.org/en/rel_1_1', None),
"python": ("https://docs.python.org/3.6", None),
"aiopg": ("http://aiopg.readthedocs.io/en/stable", None),
"sqlalchemy": ("http://docs.sqlalchemy.org/en/rel_1_1", None),
}

source_suffix = '.rst'
master_doc = 'index'
source_suffix = ".rst"
master_doc = "index"

project = 'hiku'
copyright = '2019, Vladimir Magamedov'
author = 'Vladimir Magamedov'
project = "hiku"
copyright = "2019, Vladimir Magamedov"
author = "Vladimir Magamedov"

templates_path = []

html_theme = 'furo'
html_static_path = ['_static']
html_theme_options = {
'display_version': False,
}
html_theme = "furo"
html_static_path = ["_static"]
html_theme_options = {}


def setup(app):
app.add_css_file('style.css?r=1')
app.add_css_file('fixes.css?r=1')
app.add_css_file("style.css?r=1")
app.add_css_file("fixes.css?r=1")
10 changes: 0 additions & 10 deletions docs/example.proto

This file was deleted.

27 changes: 0 additions & 27 deletions docs/example_pb2.py

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ User's Guide
subgraph
asyncio
graphql
protobuf
scalars
enums
interfaces
Expand Down
107 changes: 0 additions & 107 deletions docs/protobuf.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ Reference
result
expr
readers
protobuf/query
4 changes: 0 additions & 4 deletions docs/reference/protobuf/query.rst

This file was deleted.

7 changes: 2 additions & 5 deletions docs/reference/readers.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
.. automodule:: hiku.readers.simple
:members: read

.. automodule:: hiku.readers.protobuf
:members: read
.. automodule:: hiku.readers.graphql
:members: read, read_operation, Operation, OperationType
Loading

0 comments on commit a891bd7

Please sign in to comment.