{"id":17119152,"url":"https://github.com/regadas/presstatic","last_synced_at":"2025-04-13T02:32:36.069Z","repository":{"id":62578030,"uuid":"7996752","full_name":"regadas/presstatic","owner":"regadas","description":"Deploy static websites to Amazon S3 easily.","archived":false,"fork":false,"pushed_at":"2014-12-02T14:26:01.000Z","size":146,"stargazers_count":53,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T22:03:38.629Z","etag":null,"topics":["python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regadas.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-03T21:16:54.000Z","updated_at":"2022-11-13T15:38:33.000Z","dependencies_parsed_at":"2022-11-03T19:43:05.422Z","dependency_job_id":null,"html_url":"https://github.com/regadas/presstatic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fpresstatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fpresstatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fpresstatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fpresstatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regadas","download_url":"https://codeload.github.com/regadas/presstatic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657820,"owners_count":21140842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python"],"created_at":"2024-10-14T17:56:24.779Z","updated_at":"2025-04-13T02:32:35.829Z","avatar_url":"https://github.com/regadas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"presstatic\n----------\n\nby Filipe Regadas (`@regadas \u003chttp://twitter.com/regadas\u003e`_)\n\nThis is a little CLI utility that helps deploying static websites to Amazon S3.\n\nUsage\n-----\n\n.. code-block:: shell\n\n\t$\u003e pip install presstatic\n\n\t$\u003e pstatic -h\n\n\tusage: presstatic [-h] [-http HOST:PORT] [-s3 bucket] directory\n\n\tpositional arguments:\n\t\tdirectory        directory containing the static website.\n\n\toptional arguments:\n\t\t-h, --help       show this help message and exit\n\t\t-http HOST:PORT  creates an HTTP Server with \u003cdirectory\u003e as root dir.\n\t\t-s3 bucket       deploy on the specified S3 bucket.\n  \t\t\n* upload your website:\n\n.. code-block:: shell\n\n\t$\u003e export AWS_ACCESS_KEY_ID=\u003cYour Key id\u003e\n\n\t$\u003e export AWS_SECRET_ACCESS_KEY=\u003cYour Secret\u003e\n\n\t$\u003e pstatic -s3 example.com ~/projects/example.com\n  \t\n* preview your website while you develop it:\n\n\tAny change in files/directories will trigger the builder. Because of this and other reasons this http server is intended for development only.\n\n.. code-block:: shell\n\t\n\t$\u003e pstatic -http ~/projects/example.com\n\n\nTemplates\n---------\n\nWe use the awesome `Jinja \u003chttp://jinja.pocoo.org/\u003e`_ template engine.\n\nAssets\n------\n\nWe are using `webassets \u003chttps://github.com/miracle2k/webassets\u003e`_ for asset bundling.\n\nIf you intend to use assets you need to add a configuration file (YAML) to your root project.\nPlease see the webassets docs to see for more details.\n\nHere's an example:\n\n.. code-block:: yaml\n\n\turl: /static\n\tdebug: True\n\tbundles:\n\t    all_css:\n\t        filters: yui_css\n\t        output: static/css/packed.css\n\t        contents:\n\t            - static/css/style.css\n\t            - static/css/jquery.fancybox.css\n\t    all_js:\n\t        filters: yui_js\n\t        output: static/js/packed.js\n\t        contents:\n\t            - static/js/jquery-latest.min.js\n\t            - static/js/jquery.fancybox.pack.js\n\t            - static/js/app.js\n\nTODO\n----\n\n* Add Template support [DRAFT]\n* Add Asset support [DRAFT]\n* Add watcher support [DRAFT]\n\nLicense\n_______\n\npresstatic is under MIT license. See the `LICENSE \u003chttps://github.com/regadas/presstatic/blob/master/LICENSE\u003e`_ file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregadas%2Fpresstatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregadas%2Fpresstatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregadas%2Fpresstatic/lists"}