semvec/pypi-packages huggingface dataset:
django-easy-rest 3.1
A simple Django app to create rest applications
License: MIT License

EASY REST
=========

Django easy rest is a rest framework with the focus of making
development faster, it is built on top of the awesome django rest
framework (drf).

the main purpose of this framework is to give a speed boost to
developers in rest api fields.

It features a rich and useful debugger, scripts, classes, mixins and
brings django context to your javascripts

and does much more for you fore more read the docs:

`Read the docs <https://django-easy-rest.readthedocs.io/en/latest/>`__
pyblockMesh 0.0.3
Python wrapper around blockMeshDict creation
License: MIT License
Requires Python: >=3
Keywords: blockmesh blockmeshdict openfoam pyfoam

#+TITLE: pyblockmesh
#+AUTHOR: Vishakh Pradeep Kumar
#+EMAIL: grokkingStuff@gmail.com

Python Library 

#+BEGIN_SRC sh :exports results
.
├── CHANGELOG.md
├── CONTRIBUTING.md
├── index.org
├── LICENSE
├── pyblockmesh
│   ├── edge.py
│   ├── face.py
│   ├── hexahedron.py
│   ├── __init__.py
│   └── vertex.py
├── pytest.ini
├── README.md
├── README.org
├── requirements.txt
├── script
│   └── test
├── setup.py
└── tests
    ├── helpers
    │   ├── __init__.py
    │   └── my_helper.py
    ├── __init__.py
    ├── tests_helper.py
    └── unit
        ├── __init__.py
        ├── test_example.py
        └── test_version.py

5 directories, 22 files
#+END_SRC

* Example


#+BEGIN_SRC python
import pyblockmesh as pbm


v0 = pbm.Vertex(-1,-1,-1)
v1 = pbm.Vertex( 1,-1,-1)
v2 = pbm.Vertex( 1, 1,-1)
v3 = pbm.Vertex(-1, 1,-1)
v4 = pbm.Vertex(-1,-1, 1)
v5 = pbm.Vertex( 1,-1, 1)
v6 = pbm.Vertex( 1, 1, 1)
v7 = pbm.Vertex(-1, 1, 1)

h1 = pbm.Hexahedron([v0,v1,v2,v3,v4,v5,v6,v7],numberOfCells=[3,3,3])
h1.add_edge(v0,v1,'line')
h1.add_face([v0,v1,v2,v3],name='inlet',patchType='wall')

string = pbm.buildBlockMesh()

print(string)
blockMeshDict = open("blockmeshdict.txt", "w")
blockMeshDict.write(string) 
blockMeshDict.close()
#+END_SRC

#+RESULTS:
: None

#+BEGIN_EXAMPLE
vertices
(
    (-1 -1 -1)
    (1 -1 -1)
    (1 1 -1)
    (-1 1 -1)
    (-1 -1 1)
    (1 -1 1)
    (1 1 1)
    (-1 1 1)
)

blocks
(
    hex 0 1 2 3 4 5 6 7 ( 3 3 3 )
)

edges
(
    line 0 1 
)

boundary
(
inlet
{
    type wall;
    faces
    (
        ( 0 3 2 1 ) 
    );
}
)
#+END_EXAMPLE



* Requirements

Package requirements are handled using pip. To install them do

#+BEGIN_SRC sh
pip install -r requirements.txt
#+END_SRC