Commit Graph

40 Commits (9f0fe936d7b93bca9c6caaa2113672757be4a263)

Author SHA1 Message Date
Chris Veilleux 9f0fe936d7
added psycopg2 to dependencies 2019-02-01 14:23:18 -06:00
Chris Veilleux 585f9332db
Fixed how the packages were identified 2019-02-01 14:03:59 -06:00
Chris Veilleux f78db57883
Create __init__.py 2019-02-01 13:49:42 -06:00
Chris Veilleux dc9dce74d2
changed package name in to selene 2019-02-01 13:49:01 -06:00
Chris Veilleux 81f090b2d1
Merge pull request #37 from MycroftAI/logging-setup
Logging setup
2019-01-31 13:06:20 -06:00
Chris Veilleux 69fcd2f65f merging tartarus-overhaul onto branch 2019-01-31 11:17:47 -06:00
Chris Veilleux c0ed35a9f6 added some comments to clarify the different connection methods. 2019-01-31 11:13:44 -06:00
Chris Veilleux 0731c3e449 initial attempt at standardizing logging functionality across the selene backend 2019-01-31 11:06:27 -06:00
Chris Veilleux c54590895c abstract global config setup 2019-01-30 22:25:02 -06:00
Chris Veilleux 48e3509277 add package api to __init__.py 2019-01-30 22:24:14 -06:00
Chris Veilleux 2bd45ae7e1 merge connection_pooling onto abstract-api-common 2019-01-30 21:59:28 -06:00
Chris Veilleux 934ad323eb removed lingering package from recent git acrobatics 2019-01-30 20:39:48 -06:00
Chris Veilleux 01f17d03de fixed a couple of minor bugs encountered in testing 2019-01-30 20:32:20 -06:00
Chris Veilleux 4cf170592d moved common API logic from selene.util to new selene.api package. the util package is for non-business logic and the common api bits contain business logic 2019-01-30 19:16:46 -06:00
Chris Veilleux cd3b67b127 initial attempt at implementing database connection pooling. side effect of changes was converting selene.util.db to a package to split out the different database functions in to their own modules 2019-01-30 18:57:31 -06:00
Chris Veilleux d1d0189ec3 moved device.py into the right place 2019-01-30 18:37:12 -06:00
Chris Veilleux a197529e9b new approach to storing data classes and data access logic. 2019-01-30 14:54:19 -06:00
Chris Veilleux d168d25717 reorganized the shared directory to have a top-level "selene" package that all other shared packages will be included in. 2019-01-30 14:49:54 -06:00
Chris Veilleux f199e0969b moved the contents of the "backend" directory up one level since this repo is now just for backend code 2019-01-30 14:47:18 -06:00
Chris Veilleux 2810b60fa6 moved backend code to new directory structure 2018-11-02 14:47:13 -05:00
Chris Veilleux f5b24ddf68 minor PEP8 refactor 2018-10-11 15:10:28 -05:00
Chris Veilleux 5122dc96d0 moved JWT creation logic to shared package for re-usability 2018-09-26 22:36:44 -05:00
Chris Veilleux 2cb8bf3083 the config attribute of the base class cannot be set until instantiation time. 2018-09-26 22:02:23 -05:00
Chris Veilleux eebdf7edf4 minor refactor 2018-09-26 21:58:21 -05:00
Chris Veilleux f299988d21 renamed base class again... i just can't seem to make up my mind! 2018-09-26 16:23:10 -05:00
Chris Veilleux 7c8c7d9f7f renamed the base class to more closely represent the resource object it inherits from 2018-09-26 16:21:47 -05:00
Chris Veilleux fb34f3025e remove the default methods representing the different HTTP verbs. Flask takes care of raising 405 errors, no reason to replicate the logic 2018-09-26 16:19:58 -05:00
Chris Veilleux 3b8fda347c refactored 2018-09-25 22:20:00 -05:00
Chris Veilleux eb2c392f01 changed the exception name AuthenticationError instead of AuthorizationError since this method we are authenticating, not authorizing 2018-09-25 22:15:50 -05:00
Chris Veilleux 7e67073307 added an *args argument to the get method in case arguments are passed in subclasses 2018-09-22 16:44:19 -05:00
Chris Veilleux 722b893c45 refactored response logic and added 405 errors for unsupported methods 2018-09-20 17:17:19 -05:00
Chris Veilleux 16f1cd0286 split the login out from the repository access. 2018-09-12 23:00:42 -05:00
Chris Veilleux 0306638f5f not sure why this changed, but it did 2018-08-24 17:26:47 -05:00
Chris Veilleux d666645662 added missing required packages 2018-08-22 23:24:40 -05:00
Chris Veilleux 895a7e66b1 added the flask-restful package 2018-08-22 23:22:19 -05:00
Chris Veilleux dc36d12d61 Parend Dockerfile for Selene services and APIs 2018-08-22 22:10:43 -05:00
Chris Veilleux 6930166924 Pipfiles to support pipenv 2018-08-22 22:09:58 -05:00
Chris Veilleux a6ff57d891 added setup.py file so that pipenv could install to other local packages 2018-08-22 22:09:28 -05:00
Chris Veilleux 7f87c6a7c0 new selene_util package 2018-08-22 22:05:54 -05:00
Chris Veilleux 250f4b8f6f moved the endpoints into a sub-package to debug an error with uwsgi 2018-08-21 16:18:56 -05:00