Skip to content

Commit 14a010e

Browse files
authored
refactor: Rename from pydantic-to-django-model to pydantic-to-djmodel (#7)
1 parent a9a6e93 commit 14a010e

20 files changed

+481
-198
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
miniconda-version: "latest"
5151
environment-file: conda/dev.yaml
5252
channels: conda-forge,nodefaults
53-
activate-environment: pydantic-to-django-model
53+
activate-environment: pydantic-to-djmodel
5454
auto-update-conda: true
5555
conda-solver: libmamba
5656

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
miniconda-version: "latest"
2727
environment-file: conda/release.yaml
2828
channels: conda-forge,nodefaults
29-
activate-environment: pydantic-to-django-model-release
29+
activate-environment: pydantic-to-djmodel-release
3030
auto-update-conda: true
3131
conda-solver: libmamba
3232

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pydantic-to-django-model
1+
# pydantic-to-djmodel
22

33
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)![Mkdocs](https://img.shields.io/badge/Documentation%20engine-Mkdocs-orange)
44
![Conda](https://img.shields.io/badge/Virtual%20environment-conda-brightgreen?logo=anaconda)[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
@@ -13,11 +13,11 @@
1313
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
1414
![Makim](https://img.shields.io/badge/Automation%20task-Makim-blue)![GitHub Actions](https://img.shields.io/badge/GitHub%20Actions-CI-blue?logo=githubactions)
1515

16-
pydantic-to-django-model is a Python library that converts Pydantic BaseModels into Django ORM models. It maps Pydantic fields, validators, and constraints to Django model fields, supporting nested models and relationships. This simplifies data validation and database management, reducing code duplication and easing migrations.
16+
pydantic-to-djmodel is a Python library that converts Pydantic BaseModels into Django ORM models. It maps Pydantic fields, validators, and constraints to Django model fields, supporting nested models and relationships. This simplifies data validation and database management, reducing code duplication and easing migrations.
1717

1818
- Software License: MIT
1919

20-
- Documentation: https://pydantic-to-django-model.com
20+
- Documentation: https://pydantic-to-djmodel.com
2121

2222
## Features
2323

conda/dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pydantic-to-django-model
1+
name: pydantic-to-djmodel
22
channels:
33
- nodefaults
44
- conda-forge

conda/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pydantic-to-django-model-release
1+
name: pydantic-to-djmodel-release
22
channels:
33
- nodefaults
44
- conda-forge

docs/contributing.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In order to be able to contribute, it is important that you understand the
44
project layout.
55

66
This project uses the _src layout_, which means that the package code is located
7-
at `./src/pydantic_to_django_model`.
7+
at `./src/pydantic_to_djmodel`.
88

99
For my information, check the official documentation:
1010
<https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/>
@@ -46,8 +46,8 @@ and “help wanted” is open to whoever wants to implement it.
4646

4747
### Write Documentation
4848

49-
pydantic-to-django-model could always use more documentation, whether as part of
50-
the official pydantic-to-django-model docs, in docstrings, or even on the web in
49+
pydantic-to-djmodel could always use more documentation, whether as part of
50+
the official pydantic-to-djmodel docs, in docstrings, or even on the web in
5151
blog posts, articles, and such.
5252

5353
### Submit Feedback
@@ -63,15 +63,15 @@ If you are proposing a feature:
6363

6464
## Get Started
6565

66-
Ready to contribute? Here’s how to set up `pydantic-to-django-model` for local
66+
Ready to contribute? Here’s how to set up `pydantic-to-djmodel` for local
6767
development.
6868

69-
1. Fork the `pydantic-to-django-model` repo on GitHub.
69+
1. Fork the `pydantic-to-djmodel` repo on GitHub.
7070
2. Clone your fork locally and change to the directory of your project:
7171

7272
```bash
73-
$ git clone git@github.com:your_name_here/pydantic-to-django-model.git
74-
$ cd pydantic-to-django-model/
73+
$ git clone git@github.com:your_name_here/pydantic-to-djmodel.git
74+
$ cd pydantic-to-djmodel/
7575
```
7676

7777
### Prepare and use virtual environment
@@ -83,7 +83,7 @@ that, ensure that conda is already available in your terminal session and run:
8383

8484
```bash
8585
$ conda env create env create --file conda/dev.yaml
86-
$ conda activate pydantic_to_django_model
86+
$ conda activate pydantic_to_djmodel
8787
```
8888

8989
Note: you can use `mamba env create` instead, if you have it already installed,
@@ -109,7 +109,7 @@ You are now ready to implement your changes or improvements.
109109

110110
### Install and Use Pre-commit Hooks
111111

112-
- `pydantic-to-django-model` uses a set of `pre-commit` hooks to improve code
112+
- `pydantic-to-djmodel` uses a set of `pre-commit` hooks to improve code
113113
quality. The hooks can be installed locally using:
114114

115115
```bash
@@ -158,7 +158,7 @@ Before you submit a pull request, check that it meets these guidelines:
158158
## Running tests locally
159159
160160
The tests can be executed using the `test` dependencies of
161-
`pydantic-to-django-model` in the following way:
161+
`pydantic-to-djmodel` in the following way:
162162
163163
```bash
164164
$ python -m pytest
@@ -170,7 +170,7 @@ The coverage value can be obtained while running the tests using `pytest-cov` in
170170
the following way:
171171
172172
```bash
173-
$ python -m pytest --cov=pydantic-to-django-model tests/
173+
$ python -m pytest --cov=pydantic-to-djmodel tests/
174174
```
175175
176176
A much more detailed guide on testing with `pytest` is available

docs/example.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# pydantic-to-django-model\n",
7+
"# pydantic-to-djmodel\n",
88
"\n",
9-
"pydantic-to-django-model is Python library that aims to do ...\n",
9+
"pydantic-to-djmodel is Python library that aims to do ...\n",
1010
"\n",
1111
"## Getting Started\n",
1212
"\n",
@@ -21,7 +21,7 @@
2121
"metadata": {},
2222
"outputs": [],
2323
"source": [
24-
"import pydantic_to_django_model"
24+
"import pydantic_to_djmodel"
2525
]
2626
},
2727
{

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![LOGO](/images/logo.png)
22

3-
# pydantic-to-django-model
3+
# pydantic-to-djmodel
44

55
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)![Mkdocs](https://img.shields.io/badge/Documentation%20engine-Mkdocs-orange)
66
![Conda](https://img.shields.io/badge/Virtual%20environment-conda-brightgreen?logo=anaconda)[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
@@ -20,11 +20,11 @@
2020
![Makim](https://img.shields.io/badge/Automation%20task-Makim-blue)
2121
![GitHub Actions](https://img.shields.io/badge/GitHub%20Actions-CI-blue?logo=githubactions)
2222

23-
pydantic-to-django-model is a Python library that converts Pydantic BaseModels
23+
pydantic-to-djmodel is a Python library that converts Pydantic BaseModels
2424
into Django ORM models.
2525

2626
- License: MIT
27-
- Documentation: https://pydantic-to-django-model.com
27+
- Documentation: https://pydantic-to-djmodel.com
2828

2929
## Features
3030

docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
## Stable release
44

5-
To install pydantic-to-django-model, run this command in your terminal:
5+
To install pydantic-to-djmodel, run this command in your terminal:
66

77
```bash
8-
pip install pydantic-to-django-model
8+
pip install pydantic-to-djmodel
99
```
1010

11-
This is the preferred method to install pydantic-to-django-model, as it will
11+
This is the preferred method to install pydantic-to-djmodel, as it will
1212
always install the most recent stable release.
1313

1414
If you don't have [pip](https://pip.pypa.io) installed, this
@@ -17,7 +17,7 @@ can guide you through the process.
1717

1818
## From sources
1919

20-
The sources for pydantic-to-django-model can be downloaded from the
20+
The sources for pydantic-to-djmodel can be downloaded from the
2121
[Github repo]().
2222

2323
You can either clone the public repository:

mkdocs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
site_name: pydantic-to-django-model
2-
site_url: https://pydantic-to-django-model.com
1+
site_name: pydantic-to-djmodel
2+
site_url: https://pydantic-to-djmodel.com
33
repo_url: https://github.com/MYORG/MYREPO
44
docs_dir: ./docs/
55
site_dir: ./build/
@@ -113,7 +113,7 @@ markdown_extensions:
113113
- tables
114114
- toc
115115
extra:
116-
project_name: "pydantic-to-django-model"
116+
project_name: "pydantic-to-djmodel"
117117
team:
118118
- name: "Active maintainers"
119119
members:
@@ -137,4 +137,4 @@ extra:
137137
icon: :material-cancel:{ .cancel }
138138
description: Unlikely to ever be supported or no upstream support.
139139

140-
copyright: "Copyright &copy; 2022, pydantic-to-django-model Team"
140+
copyright: "Copyright &copy; 2022, pydantic-to-djmodel Team"

0 commit comments

Comments
 (0)