Skip to content

Commit b028bbe

Browse files
Project init
0 parents  commit b028bbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+512
-0
lines changed

Chamak.egg-info/PKG-INFO

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Metadata-Version: 2.1
2+
Name: Chamak
3+
Version: 0.0.6
4+
Summary: A python implementation of laravel framework for machine learning, AI, datascience and data intensive work.
5+
Home-page: https://github.com/bedus-creation/LaraPy
6+
Author: Bedram Tamang
7+
Author-email: [email protected]
8+
License: UNKNOWN
9+
Description: # LaraPy
10+
A python implementation of laravel framework for machine learning, AI, datascience and data intensive work.
11+
12+
### Features
13+
* **MVC** Framework
14+
* **Routing**
15+
* **jinja 2** templating engine.
16+
17+
# Installation
18+
Download project directly from github repository. Clone it and remove the origin (Optional).
19+
```
20+
git clone [email protected]:bedus-creation/LaraPy.git project_name
21+
cd project_name
22+
git remote remove origin
23+
```
24+
25+
### Serve app
26+
```
27+
python serve
28+
```
29+
### Testing
30+
```
31+
python -m pytest
32+
33+
# With out Network
34+
python -m pytest -m "not network"
35+
```
36+
37+
Platform: UNKNOWN
38+
Classifier: Programming Language :: Python :: 3
39+
Classifier: License :: OSI Approved :: MIT License
40+
Classifier: Operating System :: OS Independent
41+
Requires-Python: >=3.6
42+
Description-Content-Type: text/markdown

Chamak.egg-info/SOURCES.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
setup.cfg
2+
setup.py
3+
Chamak/__init__.py
4+
Chamak.egg-info/PKG-INFO
5+
Chamak.egg-info/SOURCES.txt
6+
Chamak.egg-info/dependency_links.txt
7+
Chamak.egg-info/top_level.txt
8+
Chamak/Foundation/FileReponse.py
9+
Chamak/Foundation/Request.py
10+
Chamak/Foundation/Response.py
11+
Chamak/Foundation/Router.py
12+
Chamak/Foundation/__init__.py
13+
Chamak/Foundation/app.py
14+
Chamak/Foundation/bootstrap.py
15+
Chamak/view/__init__.py
16+
Chamak/view/view.py

Chamak.egg-info/dependency_links.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Chamak.egg-info/top_level.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Chamak

Chamak/Container/Container.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Container:
2+
def __init__(self):
3+
pass
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class Migration:
2+
pass

Chamak/Database/Migrations/Schema.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Schema:
2+
3+
@staticmethod
4+
def create(self):
5+
pass
6+
7+
@staticmethod
8+
def dropIfExists():
9+
pass

Chamak/Database/Model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class Model:
2+
pass

Chamak/Foundation/FileReponse.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from webob import Request, Response
2+
import mimetypes
3+
4+
class FileReponse:
5+
6+
@staticmethod
7+
def is_static(filename):
8+
return FileReponse().get_mimetype(filename) != None
9+
10+
def get_mimetype(self, filename):
11+
type, encoding = mimetypes.guess_type(filename)
12+
return type
13+
14+
def make_response(self, filename):
15+
res = Response(content_type=self.get_mimetype(filename))
16+
res.body = open(filename, 'rb').read()
17+
return res

Chamak/Foundation/Request.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from Chamak.Foundation.app import Application
2+
3+
4+
class Request:
5+
@staticmethod
6+
def uri():
7+
return Application.get('env')['PATH_INFO'].strip('/')
8+
9+
@staticmethod
10+
def method():
11+
return Application.get('env')['REQUEST_METHOD']

0 commit comments

Comments
 (0)