Skip to content

Commit

Permalink
💥 Rename the project
Browse files Browse the repository at this point in the history
  • Loading branch information
ducdetronquito committed Oct 10, 2022
1 parent 5cb6e51 commit b7b0af6
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "csvmagic",
"name": "magicparse",
"dockerComposeFile": ["../docker-compose.yml", "../docker-compose.override.yml"],
"service": "csvmagic",
"workspaceFolder": "/home/src/csvmagic/",
"service": "magicparse",
"workspaceFolder": "/home/src/magicparse/",
"shutdownAction": "stopCompose",
"extensions": [
"ms-python.python",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN \
groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME

WORKDIR /home/src/csvmagic
WORKDIR /home/src/magicparse

RUN pip install pytest

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# csvmagic 🛸
# magicparse 🛸

Declarative parser for CSV and columnar data
Declarative parser

## Usage

```python
import csvmagic
import magicparse


schema = {
Expand All @@ -24,7 +24,7 @@ schema = {
}


rows, errors= csvmagic.parse(data="...", schema=schema)
rows, errors= magicparse.parse(data="...", schema=schema)
```


Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ version: '3.0'

services:

csvmagic:
magicparse:
build:
context: .
args:
- USERNAME=csvmagic
- USERNAME=magicparse
tty: true
working_dir: /home/src/csvmagic
working_dir: /home/src/magicparse
volumes:
- .:/home/src/csvmagic
- .:/home/src/magicparse
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from setuptools import setup

setup(
name="csvmagic",
name="magicparse",
version="0.1.0",
description="Declarative parser for CSV and columnar data",
description="Declarative parser",
author="ZG",
author_email="[email protected]",
python_requires=">=3.9.0",
url="https://github.com/ZeroGachis/csvmagic",
url="https://github.com/ZeroGachis/magicparse",
packages=[
"csvmagic",
"magicparse",
],
)
2 changes: 1 addition & 1 deletion tests/test_converters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from csvmagic.converters import Converter, DecimalConverter, IntConverter, StrConverter
from magicparse.converters import Converter, DecimalConverter, IntConverter, StrConverter
from decimal import Decimal
import pytest
from unittest import TestCase
Expand Down
10 changes: 5 additions & 5 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from decimal import Decimal

import pytest
from csvmagic.converters import DecimalConverter, StrConverter
from csvmagic.fields import ColumnarField, CsvField, Field
from csvmagic.post_processors import Divide
from csvmagic.pre_processors import Replace, StripWhitespaces
from csvmagic.validators import RegexMatches
from magicparse.converters import DecimalConverter, StrConverter
from magicparse.fields import ColumnarField, CsvField, Field
from magicparse.post_processors import Divide
from magicparse.pre_processors import Replace, StripWhitespaces
from magicparse.validators import RegexMatches


class DummyField(Field):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_post_processors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from decimal import Decimal
from csvmagic.post_processors import Divide, PostProcessor
from magicparse.post_processors import Divide, PostProcessor
import pytest
from unittest import TestCase

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pre_processors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from csvmagic.pre_processors import (
from magicparse.pre_processors import (
LeftPadZeroes,
Map,
PreProcessor,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from csvmagic import Schema
from csvmagic.schema import ColumnarSchema, CsvSchema
from csvmagic.fields import ColumnarField, CsvField
from magicparse import Schema
from magicparse.schema import ColumnarSchema, CsvSchema
from magicparse.fields import ColumnarField, CsvField
import pytest
from unittest import TestCase

Expand Down
2 changes: 1 addition & 1 deletion tests/test_validators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from csvmagic.validators import RegexMatches, Validator
from magicparse.validators import RegexMatches, Validator
import pytest
import re
from unittest import TestCase
Expand Down

0 comments on commit b7b0af6

Please sign in to comment.