A modular toolkit for analytics.
Project description
# newslynx
the API and SousChefs that Power Newslynx.
## (Re)Setting up the dev environment
Clone this repository and install newslynx
preferably do this in a virtual environment.
` pip install newslynx `
(re)create a postgresql database
` dropdb newslynx createdb newslynx `
fill out [example_config/config.yaml](config.yaml) and move it to ~/.newslynx/config.yaml
modify default recipes and tags in [example_config/defaults/recipes/](example_config/defaults/recipes/) and [example_config/defaults/tags/](example_config/defaults/tags/), respectively. These tags and recipes will be created everytime a new organization is added.
initialize the database:
` newslynx init `
populate with sample data
` newslynx gen_random_data `
start the server in debug mode
` newslynx runserver -r -d `
## TODO
[x] Migrate common utilites from other repos into single repo.
[x] Create Database Schema / Models
[x] Create Blueprint-based app workflow
[x] Re-implement OAuth endpoints
[x] Implement Facebook OAuth
[x] Re-implement User / Login API
[x] Implement Org API
[x] Re-implement Settings API
- [x] Re-implement Events API
[x] Implement Postgres-based search
- [x] Re-implement Things API (aka Articles)
[x] Implement Postgres-based search
[x] Re-implement Tags API
[x] Write out SousChefs JSONSchema
- [x] Write out initial schemas:
[x] article
[x] twitter-list
[x] twitter-user
[x] facebook-page
- [x] Write out default recipes + tags:
[x] article
[x] twitter-list
[x] twitter-user
[x] facebook-page
[x] promotion impact tag
[x] Update create org endpoint to generate default recipes + tags.
[x] Implement SousChefs API
[x] Implement Recipes API
[ ] Implement Thing Creation API
[ ] Implement Event Creation API
- [ ] Implement Metrics API:
[x] Figure out how to use tablefunc for pivot tables.
- [ ] Implement Reports API (Are these just metrics?)
[ ] Figure out how to use pypostgresql for custom postgres functions.
[ ] Implement Task Queue (Celery, Redis?)
[ ] Implement Modular SousChefs
[x] Figure out how best to use OAuth tokens in SousChefs. Ideally these should not be exposed to users.
[x] Implement API client
- [ ] Re-implement SousChefs
[ ] RSS Feeds => Thing
[ ] Google Analytics => Metric
[ ] Google Alerts => Event
[ ] Social Shares => Metric
[ ] Homepage Promotions => Metric
[ ] Twitter Promotions => Metric
[ ] Facebook Promotions => Metric
[ ] Twitter List => Event
[ ] Twitter User => Event
[ ] Facebook Page => Event
[ ] Reddit => Event
[ ] HackerNews => Event
- [ ] Implement New SousChefs
- [ ] IFTTT integrations
[ ] Wordpress Publish => Thing
TK
[ ] Regex Thing URL => Tag
[ ] Search Things => Tag
[ ] Meltwater Emails => Event
[ ] Newsletter Email Promotions => Metric
[ ] Implement Recipe scheduler
[ ] Implement Admin Panel
[ ] Migrate Core Beta Users (Lauren, Lindsay, Blair)
[ ] Automate Deployment
[ ] App Integration
[ ] Document, Document, Document
## References
### API Design
### Crosstab in Postgres * [http://www.postgresonline.com/journal/archives/14-CrossTab-Queries-in-PostgreSQL-using-tablefunc-contrib.html](http://www.postgresonline.com/journal/archives/14-CrossTab-Queries-in-PostgreSQL-using-tablefunc-contrib.html)
### filling in zeros for a timezeries * [http://stackoverflow.com/questions/346132/postgres-how-to-return-rows-with-0-count-for-missing-data]
### fetching column names from table * [http://www.postgresql.org/message-id/AANLkTilsjTAXyN5DghR3M2U4c8w48UVxhov4-8igMpd1@mail.gmail.com](http://www.postgresql.org/message-id/AANLkTilsjTAXyN5DghR3M2U4c8w48UVxhov4-8igMpd1@mail.gmail.com)
### timeseries tips * [http://no0p.github.io/postgresql/2014/05/08/timeseries-tips-pg.html](http://no0p.github.io/postgresql/2014/05/08/timeseries-tips-pg.html)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for newslynx-0.0.5.macosx-10.10-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e78e0d2ba25fffabd2686577dc45927d7e312a2a8875a8a285929b7d49ab2ef |
|
MD5 | 163a8e86270d2ba69adc03da16592831 |
|
BLAKE2b-256 | 6322471d0f5db720cee568ab5d565c64ecc51f8ff5087a2ce99c9e79ebed28a1 |