<commit_before># cage

content management framework built on python 3, tornado, and
mongo. this is the RESTful backend and is not intended to be exposed
to the public.

## idea behind this?

well, I wanted something that handles different entity types
individual of each other. for example, I wanted to query for a
`activity` entity type that would provide me access to a `status`
attribute that could be manipulated by a frontend application anyway I
see fit. Kind of like Drupal's custom field attributes, or Wordpress'
custom advanced fields. Obviously, with a smaller footprint and
entities encoded in json so I could easily write any frontend I wanted
as long as it knew what json was. Im sure this has been done million
times over but I was bored.

some things I want to implement:

* entity constraints
* mongo's replication features
* entity helpers/validators

some things that shouldnt be here:

* authentication - its not intended to be public
* entity dependencies on each other
* a bear

## requirements

python >= 3.3.2, mongo, <3

## installation

	git clone <EMAIL>:battlemidget/cage.git
	cd cage
	pip install -r requirements.txt

## Run in debug mode (autoreload enabled)

	./claw --debug

Single instance, increased logging, and autoreload during changes.

## Run in production

    ./claw

This will run multiple instances equal to your num of cpus. Autoreload
is not available in this mode.

## viewing

There's really nothing to "view" in a browser, but the default port is
`9000` so you could visit `http://localhost:9000` if you're feeling
squirrely.

## deploy

I like nginx so use that with proxy_pass, look in
`scripts/deploy-post` for an example. Or you're own proxy server
that'll handle a cluster of cage instances.

# copyright

(c) 2011-2013 <NAME>

# license

MIT
<commit_msg>Add a Bitdeli badge to README<commit_after># cage

content management framework built on python 3, tornado, and
mongo. this is the RESTful backend and is not intended to be exposed
to the public.

## idea behind this?

well, I wanted something that handles different entity types
individual of each other. for example, I wanted to query for a
`activity` entity type that would provide me access to a `status`
attribute that could be manipulated by a frontend application anyway I
see fit. Kind of like Drupal's custom field attributes, or Wordpress'
custom advanced fields. Obviously, with a smaller footprint and
entities encoded in json so I could easily write any frontend I wanted
as long as it knew what json was. Im sure this has been done million
times over but I was bored.

some things I want to implement:

* entity constraints
* mongo's replication features
* entity helpers/validators

some things that shouldnt be here:

* authentication - its not intended to be public
* entity dependencies on each other
* a bear

## requirements

python >= 3.3.2, mongo, <3

## installation

	git clone <EMAIL>:battlemidget/cage.git
	cd cage
	pip install -r requirements.txt

## Run in debug mode (autoreload enabled)

	./claw --debug

Single instance, increased logging, and autoreload during changes.

## Run in production

    ./claw

This will run multiple instances equal to your num of cpus. Autoreload
is not available in this mode.

## viewing

There's really nothing to "view" in a browser, but the default port is
`9000` so you could visit `http://localhost:9000` if you're feeling
squirrely.

## deploy

I like nginx so use that with proxy_pass, look in
`scripts/deploy-post` for an example. Or you're own proxy server
that'll handle a cluster of cage instances.

# copyright

(c) 2011-2013 <NAME>

# license

MIT


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/battlemidget/cage-cmf/trend.png)](https://bitdeli.com/free "Bitdeli Badge")


{'fraction_non_alphanumeric': 0.06318024953543934, 'fraction_numerical': 0.01247677196708256, 'mean_word_length': 4.161643835616438, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4896459', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1036, 'n_words': 549}