Skip to main content

A Pyramid Scaffold to Pony users (django) by Mario Idival

Project description

I am Pharaoh is scaffold create to Django users which are starting with Pyramid.

Install:

pip install iampharaoh

After, verify your scaffold’s:

pcreate -l

Result:

Available scaffolds:
    alchemy:                 Pyramid SQLAlchemy project using url dispatch
    pharaohapps:             Create an 'app' in project. - Like startapp Django
    pharaohproject:          Scaffold created for Django users initiate with Pyramid more comfortably
    starter:                 Pyramid starter project
    zodb:                    Pyramid ZODB project using traversal

Only pharaohapps and pharaohproject are created by I am Pharaoh, others are default in Pyramid

How to:

After install I am Pharaoh, start a new project

pcreate -s pharaohproject nameOfProject

The result in nameOfProeject folder is:

├── LICENSE
├── MANIFEST.in
├── README
├── nameOfProject
│   ├── __init__.py
│   ├── nameOfProject
│   │   ├── __init__.py
│   │   ├── base_model.py
│   │   └── urls.py
│   ├── scripts
│   │   ├── __init__.py
│   │   ├── destroydb.py
│   │   └── initializedb.py
│   └── static
├── development.ini
├── production.ini
├── setup.cfg
└── setup.py

So, run in you project:

python setup.py develop

This command will download some packages, but the most significant for Django users are:

Create App

Whitin your project (Like Django):

pcreate -s pharaohapps nameOfApp

The result in nameOfProeject folder now is:

├── LICENSE
├── MANIFEST.in
├── README
├── nameOfProject
│   ├── __init__.py
│   ├── nameOfProject
│   │   ├── __init__.py
│   │   ├── base_model.py
│   │   └── urls.py
│   ├── nameOfApp -> add after run last command
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── templates
│   │   │   └── index.html
│   │   ├── urls.py
│   │   └── views.py
│   ├── scripts
│   │   ├── __init__.py
│   │   ├── destroydb.py
│   │   └── initializedb.py
│   └── static
├── development.ini
├── production.ini
├── setup.cfg
└── setup.py

To connect app in project:

# nameOfProject/urls.py
config.include("nameOfProject.nameOfApp.urls")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iampharaoh-0.0.2.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file iampharaoh-0.0.2.tar.gz.

File metadata

  • Download URL: iampharaoh-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iampharaoh-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4a076ec1f0419d559d109dac21a4cb2c840da5783c7bd4722ba1f367342be5be
MD5 e104ded8bbe813ebd72d89f3a68f6ebf
BLAKE2b-256 421f76ce6fbebaf1d53a74beabc6765f653e9b15705e2fe720a5ea32b2b529c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page