{ "info": { "author": "vitorfaleiros", "author_email": "barrabin.fc@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python" ], "description": "# dl-skel\n\ndl-skel.py provides skeleton generator for you to avoid creating a\nproject from zero everytime.\n\nIts useful to bootstrap general projects, like HTMLBootstrap, PythonPackage,\nand others. It will download a GIT repository available on the net, and\nprocess some files to change names and so on.\n\nIn the end, you will have a new folder, with `dlbuild.py` that can be used\nto `runserver`, or `build` the project.\n\n![dl-skel](docs/dlskel.png)\n\n---\n\n## Installation\n\nInstall it via pip (`pip install dl-skel`), or manually:\n\n```\n$ git clone git@github.com:doubleleft/dl-skel.git\n$ cd dl-skel\n$ python setup.py install\n```\n\nThis will create a `dl-skel.py` bin in your path (virtualenv or systemwide)\n\n## CLI Usage\n\nUsage via CLI app called `dl-skel.py`\n\n```\nUsage: dl-skel.py [options]\n\nOptions:\n -h, --help show this help message and exit\n --skeleton-config=SKELCONFIG\n dlskel Config file. Default is ~/.dl-skel/config.json\n --skeleton-path=SKELPATH\n Use another Skeleton Search Path. Default is ~/.dl-skel/\n\n -l, --list List skeletons\n\n Import new Template:\n -i , --import= \n import a new template from the given GIT\n repository.\n\n Create a new project:\n -c , --create= \n Create a new skeleton\n```\n\n## Default Skeletons\n\nYou can check all available skeletons using `-l`:\n\n```\n$ dl-skel.py -l\nwordpress5\t\thttps://github.com/doubleleft/skeleton-wordpress Wordpress 5.0\n```\n\nTemplate | URL \n--- | --- \nwordpress5\t\t| [skeleton-wordpress](https://github.com/doubleleft/skeleton-wordpress)\nHTMLRichApp\t\t| [skeleton-htmlrichapp](https://github.com/doubleleft/skeleton-htmlrichapp)\nHTMLSimleApp\t| [skeleton-wordpress](https://github.com/doubleleft/skeleton-wordpress)\n\n## Create a new project\n\nTo create a new project using a base skeleton, try option `-c`\n\n```\n$ dl-skel.py -c python ../my-shiny-project\nCloning python(https://github.com/ionelmc/projectskel) into ../my-shiny-project\n```\n\n## Importing your own skeletons\n\nTo import your own skeletons, use `-i`\n\n```\n$ dl-skel.py -i \n```\n\nThis will import `` and save it as ``.\nYou can now create new projects using ``\n\n```\n$ dl-skel.py -c name-of-my-project\n```\n\n# Creating my own skeletons\n\nSkeletons are simple **GIT** repositories, with a special recipe stored in the\nfile `dlbuild`. This recipe tells what to substitute, download, install, \npretty much by hand.\n\nYou MUST create the following functions in the `dlbuild.py` file:\n\n\tsetup\t\t\t\t(Download and replace files)\n\tbuild\t\t\t\t(Build project)\n\nwhile others functions, like `runserver` are optional.\n\nTo see a simple example of a skeleton, check [skeleton-wordpress](https://github.com/doubleleft/skeleton-wordpress/blob/master/dlbuild.py)\n\n# Using it inside python\n\nYou can use it direcly as an API in python\n\n```\n$ python\n\n>>> from dlskel.skel import skeleton_create, make_password\n>>> skeleton_create( 'git@github.com:doubleleft/skeleton-wordpress.git', \n 'my-wp-project', \n skel_vars={\n 'DB_NAME': 'myproj',\n 'DB_USER': 'myuser',\n 'DB_PASSWORD': make_password(length=8) })\n```\n\n---\n### TODO\n\n- \u2713 Add better file substituion via jinja2 template \n- \u2713 Add simple API for using it inside python\n- \u2713 Finish setup.py and make it pip installable\n\n- \u2713 Delete repository .git when creating a new project.\n- Add dependencies check and installation (if necessary) \n\n- ** Create Skeletons **\n * \u2713 Wordpress Skeleton\n * Laravel Skeleton\n * \u2713 Python Package Skeleton\n * Python Flask Skeleton\n * HTML Bootstrap Skeleton\n * HTML Static Skeleton", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://doubleleft.github.com/dl-skel", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "dl-skel", "package_url": "https://pypi.org/project/dl-skel/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dl-skel/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://doubleleft.github.com/dl-skel" }, "release_url": "https://pypi.org/project/dl-skel/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "DoubleLeft skeleton generator", "version": "0.1.2" }, "last_serial": 991600, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "212ad5a8a226fda4a77bc8efd93e34de", "sha256": "4d9ae798b040a583a48c8f55692c856356e1aea62309edf661d53642261078f3" }, "downloads": -1, "filename": "dl-skel-0.1.macosx-10.7-intel.exe", "has_sig": false, "md5_digest": "212ad5a8a226fda4a77bc8efd93e34de", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 74467, "upload_time": "2014-02-04T16:50:33", "url": "https://files.pythonhosted.org/packages/16/06/f7e428006b34f89384ddc9e4ff98b8e4a968de7a68756f37355f90b34f63/dl-skel-0.1.macosx-10.7-intel.exe" }, { "comment_text": "", "digests": { "md5": "caf4be33b932be121d7e160071231f34", "sha256": "52549c1fb9ab20316a71baa77d759e29ee9be59aa593a286cb823efaa2fe56fa" }, "downloads": -1, "filename": "dl-skel-0.1.tar.gz", "has_sig": false, "md5_digest": "caf4be33b932be121d7e160071231f34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23270, "upload_time": "2014-02-04T16:50:24", "url": "https://files.pythonhosted.org/packages/d2/f8/a343b0dd4263f34acd71d61bc355a9cee83f2e9a366c06857136a5c2fc9d/dl-skel-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ebc0ad7a0635547995cfd1065da32dbb", "sha256": "80769089812e51456e7cad3ae8fbfd56a71a632ead704e07e29ff1c58a8e9031" }, "downloads": -1, "filename": "dl-skel-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ebc0ad7a0635547995cfd1065da32dbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23649, "upload_time": "2014-02-04T17:19:52", "url": "https://files.pythonhosted.org/packages/08/e7/d5beb231ac3b03a6b6fc0429fdde3fb8240e3fb1e3cbd2777cf93ef72c1e/dl-skel-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2b7610511074e2a89639d79cf3acb436", "sha256": "eec7c10afe6db0343321e5d1890c26931004ffe789b0c16fb6f00bb137ae8013" }, "downloads": -1, "filename": "dl-skel-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2b7610511074e2a89639d79cf3acb436", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111565, "upload_time": "2014-02-05T19:49:49", "url": "https://files.pythonhosted.org/packages/c1/06/42a9423bbaf3e356a8eae4ed659e948ba83c45f144e88069815078f44906/dl-skel-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2b7610511074e2a89639d79cf3acb436", "sha256": "eec7c10afe6db0343321e5d1890c26931004ffe789b0c16fb6f00bb137ae8013" }, "downloads": -1, "filename": "dl-skel-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2b7610511074e2a89639d79cf3acb436", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111565, "upload_time": "2014-02-05T19:49:49", "url": "https://files.pythonhosted.org/packages/c1/06/42a9423bbaf3e356a8eae4ed659e948ba83c45f144e88069815078f44906/dl-skel-0.1.2.tar.gz" } ] }