Skip to main content
Ursa2
=====
Enhanced version of [ursa](https://github.com/sogou-ufo/ursa).

ursa2 supports [JSON Auto Combining](https://github.com/yanni4night/ursa2/wiki/JSON-Auto-Combining) , [Sub Tpl Preview](https://github.com/yanni4night/ursa2/wiki/Sub-Tpl-Preview) and more detail features,such as, supporting _url()_ in sub directory of css,which would bring bugs in previous,required data output in _http://origin/tpl.data_ url path,etc.


Feature
=====
- Local HTTP/HTTPS server
- Custom variables replace
- Jinja2/Twig like template engine
- Web data simulation
- JSON data auto combining
- JS/CSS merge&optimize
- LESS auto translation
- GET/POST(quirk) proxy
- Intelligent timestamp

Install
=====
Checkout from [GitHub](https://github.com/yanni4night/ursa2) and run :

$ python setup.py install

or use Python Package Index:

$ pip install ursa2

Super permission may be required.

Usage
=====

###initialize project

$ ursa2 init

###start server

$ ursa2 start [port]

###view template list

open browser to http://[hostname]:[port]/

###view static resource list

open browser to http://[hostname]:[port]/s

###build project

$ ursa2 build [target][--compress][--html]


Dependencies
=====
- Unix/Linux/OS X
- Java 1.5+ (for yuicompressor)
- Python 2.6+ (3.x not supported)
- [node](https://github.com/joyent/node) (for less)
- [less](https://github.com/less/less.js)
- [docopt](https://github.com/docopt/docopt) (for log)
- [jinja2](https://github.com/mitsuhiko/jinja2)
- [requests](https://github.com/kennethreitz/requests) (for proxy)


Documents
=====
- [Manifest.json](https://github.com/yanni4night/ursa2/wiki/manifest.json)
- [Ursa2 Specification](https://github.com/yanni4night/ursa2/wiki/Ursa2-Specification)
- [JSON Auto Combining](https://github.com/yanni4night/ursa2/wiki/JSON-Auto-Combining)
- [Sub Tpl Preview](https://github.com/yanni4night/ursa2/wiki/Sub-Tpl-Preview).

Quirk
=====
- Server plugin not supported.
- Mobile project initializing not supported.
- POST data in proxy not supported.
- Relative path of static resource not supported(which you should never do).

LICENCE
=====
The MIT License (MIT)

Copyright (c) 2013 YinYong

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for ursa2 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ursa2 0.0.11
File Size Uploaded
ursa2-0.0.11.tar.gz 974.3 kB Details

Release files / ursa2-0.0.11.tar.gz

Download URL ursa2-0.0.11.tar.gz
Size 974.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4015faa7bd98cdec85e8e664d2921111f81e6be7c32823eb8920b083630e42bd
BLAKE2b-256 checksum
How to use checksums
5d9910f6e2d5f29283139308c1dd465aaa12714a739d04f8be998daf38e139a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.0.12

1 release file

This release

0.0.11 This release

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page