Commit Graph

199 Commits (1.0.0)

Author SHA1 Message Date
J. Fernando Sánchez 7927cf1587 add option to show senpy version number
Merge branch 'patch-5' of https://github.com/drevicko/senpy into drevicko-patch-5
7 years ago
J. Fernando Sánchez 4ba9535d56 Merge branches into 0.8.x
'25-validation-errors'
'27-add-method-to-get-list-of-plugins'
'28-fix-multiprocessing-issues'
7 years ago
J. Fernando Sánchez ef40bdb545 Replace gevent with tornado
Closes #28

Added:

* Async test (still missing one that includes the IOLoop)
* Async plugin under tests. To manually try async functionalities:
```
senpy -f tests/
```
7 years ago
J. Fernando Sánchez e0b4c76238 Add plugin method to client
Closes #28
7 years ago
J. Fernando Sánchez 14c86ec38c Set plugin list as a @set and fixed test case
It turns out setting "plugins" as a @list in the context causes the
"plugins" property to expand to its full name.
Removing the type causes a regression of #17, which I initially missed
because the test in #17 was wrong.

Closes #26
7 years ago
J. Fernando Sánchez d3d05b3218 Fixed expansion of "plugins"
Closes #26

There was no need to add @list, and it was causing JSON-LD to expand the
URI of 'plugins'
7 years ago
J. Fernando Sánchez eababcadb0 Analysis as strings or objects in results
Closes #25
7 years ago
drevicko 7efece0224 add option to show senpy version number 7 years ago
drevicko 53138e6942 Estimate VAD by weighted average
Does a weighted average of centroids.

If intensity sums to zero for a category, a 'neutral' category is used or 0 if it's not present. I'm not 100% sure this is the best approach, and the name of the "neutral" category perhaps should use some convention?

Note that if there are no categories present, then no VAD (or other dimensional) estimate is returned. It may be better to use the neutral centroid if it's present in this case also.
7 years ago
J. Fernando Sánchez 6e970d01f2 Merge branch '21-ascii-cant-encode' into 0.8.x 7 years ago
J. Fernando Sánchez 1d0a54ecd2 Merge branch '22-pip-screws-with-logging-config' into 0.8.x 7 years ago
J. Fernando Sánchez 800d4a9c2c Fixed typos in Ian's patch 7 years ago
drevicko 035ef98b7e removed broken "/api" link
In index.html, there is a suggestion to try out the api with a link to "/api". Clicking that link results in a json error report - not ideal. 
Instead, I added text suggesting that a use can find example api url's after clickgin "Analyse!".
7 years ago
J. Fernando Sánchez d7e115d7c2 Encode HEADERS
Closes #21
7 years ago
J. Fernando Sánchez 7e5b55ff9c Run pip with Popen
Closes #22
7 years ago
J. Fernando Sánchez 0c8f98d466 Pre-0.8.6
* Improved debugging (back to using Flask's built-in mechanisms)
* Recursive model loading from json
* Added DEVPORT to Makefile
* Accept json-ld input. Closes #16
* Improved Exception handling in client
* Modified default plugin selection to only include analysis plugins
* More tests
7 years ago
J. Fernando Sánchez cc298742ec Merge branch '17-...' into 0.8.x 7 years ago
J. Fernando Sánchez 250052fb99 Options as a set in the JSON-LD context
Closes #18
7 years ago
J. Fernando Sánchez 603e086606 Fix list of plugins
Closes #17
7 years ago
J. Fernando Sánchez a8614bab0c Accept plugin pipelines
Closes #15
7 years ago
J. Fernando Sánchez c9e6d78183 Fixed alises, added PAD and FSRE
Closes #13
7 years ago
J. Fernando Sánchez 1a582c0843 Filter conversion plugins
Closes #12

* Shows only analysis plugins by default on /api/plugins
* Adds a plugin_type parameter to get other types of plugins
* default_plugin chosen from analysis plugins
7 years ago
J. Fernando Sánchez cbeb3adbdb Added fallback version '0.0'
Installing depends on the VERSION file, so it raies an error if it is
installed in some other way.

ReadTheDocs installs the package so it can generate code docs.
This commit adds a default version 0.0
7 years ago
J. Fernando Sánchez efb305173e Removed future from __init__
Since __init__ is imported by setup.py, future may not be installed yet.

Other options would be:

* Read VERSION -> and that code has to be duplicated in setup.py and
  senpy (to avoid the import, once again)
* Eval version.py
* Do without versioning :)
7 years ago
J. Fernando Sánchez 2288b04c92 Remove iteritems for py2/3 compatibility 7 years ago
J. Fernando Sánchez 99403b3443 Fix for async
Should fix #11
7 years ago
J. Fernando Sánchez a0ff528a4b Improved docs and client
* Client now raises an exception on error
* Added conversion to the documentation
7 years ago
J. Fernando Sánchez 97bd245dfc Changed data directory 7 years ago
J. Fernando Sánchez d8b59d06a4 Converted Ekman2VAD to centroids
* Changed the way modules are imported -> we can now use dotted
  notation (e.g. senpy.plugins.conversion.centroids)
* Refactored ekman2vad's plugin -> generic centroids
* Added some basic tests
7 years ago
J. Fernando Sánchez 453b9f3257 Fixed bugs in Ekman2VAD 7 years ago
J. Fernando Sánchez 5fb858f5fc Fixed error when installing dependencies 7 years ago
J. Fernando Sánchez ba2e18125c Deployment changes
* Docker all the things!
* Make all the things!
* Fixed version.sh
7 years ago
J. Fernando Sánchez 9f6a6f5ecd Loads of changes!
* Added conversion plugins (API might change!)
* Added conversion to the analysis pipeline
* Changed behaviour of --default-plugins (it adds conversion plugins regardless)
* Added emotionModel [sic] and emotionConversion models

//TODO add conversion tests
//TODO add conversion to docs
7 years ago
J. Fernando Sánchez 3cea7534ef New versioning
Use git to automatically fetch the version
7 years ago
J. Fernando Sánchez b4ca5f4a7c Several fixes and changes
* Added interactive debugging
* Better exception logging
* More tests for errors
* Added ONBUILD to dockerfile
  Now creating new images based on senpy's is as easy as:
  ```from senpy:<version>```. This will automatically mount the code to
  /senpy-plugins and install all dependencies
* Added /data as a VOLUME
* Added `--use-wheel` to pip install both on the image and in the
  auto-install function.
* Closes #9

Break compatibilitity:

* Removed ability to (de)activate plugins through the web
7 years ago
J. Fernando Sánchez 3311af2167 Bumped to v0.7.1 7 years ago
J. Fernando Sánchez 20357d2a0d Added gitlab CI 7 years ago
J. Fernando Sánchez e9d7980e42 Merge branch 'jsonplay' into 'master'
Jsonplay

Closes #8

See merge request !9
7 years ago
J. Fernando Sánchez 908090f634 Released v0.7
Bug-fixes and improvements:
* Closes #5
* Closes #1
* Adds Client (beta)
* Added several schemas
* Lighter string representation -> should avoid delays in the analysis
  with plugins that have 'heavy' attributes

Backwards-incompatible changes:
* Context in headers by default
* All schemas include a "@type" argument that is used for autodetection
  in the client

... And possibly many more, this is still <1.0
7 years ago
militarpancho cb963dc438 Playground improved. This closes #8 7 years ago
militarpancho 477cb18db1 Added tabs to choose view for the response. #8 7 years ago
J. Fernando Sánchez fbf0384985 Replaced gevent with threading
* Replaced gevent (testing)
* Trying the slim python image (1/3 of previous size)
7 years ago
militarpancho 7a2c016cc6 added jsoneditor javascript plugin in relation with issue #8 7 years ago
J. Fernando Sánchez b072121e20 Added Model string representation
This should help with performance issues with models that have large
private variables.
7 years ago
J. Fernando Sánchez ceed9b97d0 Entries should be a set instead of lists
This allows for better framing when two entries have the same @id
7 years ago
J. Fernando Sánchez db30257373 Flake8, Semver, Pre-commit
* Added pre-commit: http://pre-commit.com
* Fixed flake8 errors
* Added flake8 pre-commit hooks
* Added pre-commit to Makefile
* Changed VERSION numbering
* Changed versioning to match PEP-0440
7 years ago
J. Fernando Sánchez 7fd69cc690 YAPFed 7 years ago
J. Fernando Sánchez b543a4614e Improved schema validation
* Added debug Dockerfile/Makefile
* Validation of examples in docs
7 years ago
J. Fernando Sánchez bc1f9e4cf5 Split definitions into individual files 7 years ago
J. Fernando Sánchez d72a995fa9 New shelf location and better shelf tests 7 years ago
J. Fernando Sánchez 4dee623ef9 Better makefile 8 years ago
J. Fernando Sánchez 07b5dd3823 Added option to install dependencies in CLI 8 years ago
J. Fernando Sánchez 0d511ad3c3 Bumped to 0.6.0
* Downloads pip requirements
* Modified Makefile
8 years ago
J. Fernando Sánchez 5d5de0bc50 Makefile for automated testing (no more drone) 8 years ago
J. Fernando Sánchez c8e742f96e Bumped 0.5.6 8 years ago
J. Fernando Sánchez 1e7ae13700 Substituted json with yaml 8 years ago
J. Fernando Sánchez 16ce767d09 v0.5.5 Added CLI 8 years ago
J. Fernando Sánchez 39761e0922 Fix for heroku 8 years ago
J. Fernando Sánchez 03eb38c12d Added CLI and refactored argument parsing 8 years ago
J. Fernando Sánchez a50f026701 Fixed Playground 8 years ago
J. Fernando Sánchez b8339e397b Improved request handling
Also:
 * Shelve -> Pickle to avoid weird db problems
 * Serving schemas and contexts
8 years ago
J. Fernando Sánchez 407d17b2b9 __version__ in the module itself 8 years ago
J. Fernando Sánchez 56fef9e835 --amend 8 years ago
J. Fernando Sánchez 14a3e4103b Prefix handling and bug fixes 8 years ago
J. Fernando Sánchez 48d7d1d02e Improved plugins API and loading
Also:

* added drone-ci integration: tests for py2.7 and py3
8 years ago
J. Fernando Sánchez 14c9f61864 Python 3 compatible
There are also some slight changes to the JSON schemas and the use of
JSON-LD.
8 years ago
J. Fernando Sánchez a79df7a3da Closer to py3 8 years ago
J. Fernando Sánchez ecc2a8312a Still not functional 8 years ago
NachoCP 703fb68b27 Merge branch 'master' of github.com:gsi-upm/senpy into nacho 9 years ago
J. Fernando Sánchez 6fe68e3c40 Fixes #3 9 years ago
NachoCP 7b9f8a8bef Merge branch 'master' of github.com:gsi-upm/senpy into nacho 9 years ago
J. Fernando Sánchez 82496dc8e4 Trying to fix an issue with ShelfPlugin 9 years ago
NachoCP d304dec2f7 Update Playground 9 years ago
J. Fernando Sánchez b8993f7d64 Added shelve mixin 9 years ago
J. Fernando Sánchez bd2e0f0d5c Added traceback to plugin activation 9 years ago
J. Fernando Sánchez b0eb2e0628 Fixed error with Sentiment140 9 years ago
J. Fernando Sánchez a1ffe04a30 More sensible exceptions when importing 9 years ago
J. Fernando Sánchez 74b0cf868e Added console script 9 years ago
J. Fernando Sánchez b484b453e0 Added indentation and default plugins
* setup.py:
9 years ago
J. Fernando Sánchez 7c2e0ddec7 Added plugins by default and monkey patching
Fixes #2
9 years ago
J. Fernando Sánchez ae09f609c2 Improved message when no plugins are found 9 years ago
J. Fernando Sánchez d1006bbc92 PEP8+Better JSON-LD support
* The API has also changed, there are new parameters to send the
context as part of the headers.
* Improved tests
* PEP8 compliance (despite the line about gevent)
9 years ago
J. Fernando Sánchez 79c83e34a3 Added random plugin and other features 9 years ago
J. Fernando Sánchez 37a098109f Module script and improvement in JSON-LD 10 years ago
J. Fernando Sánchez ff14925056 Improved plugins, better tests, gevent
Moved from Yapsy again (it is not flexible enough), now we use a
custom solution.
The activation and deactivation of plugins is asynchronous, so
that plugins that take a long time don't interfere with the rest.
10 years ago
J. Fernando Sánchez 10f4782ad7 Better NIF compliance 10 years ago
J. Fernando Sánchez 4351f76b60 Removed unnecessary contexts 10 years ago
J. Fernando Sánchez 86f45f8147 JSON-LD contexts and prefixes 10 years ago
J. Fernando Sánchez 2834967026 Better jsonld support 10 years ago
J. Fernando Sánchez 2f7a8d7267 Fixed setup.py and pip 10 years ago
J. Fernando Sánchez 2b68838514 PEP8 compliance 10 years ago
J. Fernando Sánchez eaf65f0c6b First tests 10 years ago
J. Fernando Sánchez a5e79bead3 Version 0.2.5 - Pypi 10 years ago
J. Fernando Sánchez ff8d12074b Improved plugins (reload, imp) 10 years ago
J. Fernando Sánchez bdf1992775 Fixed plugins 10 years ago
J. Fernando Sánchez e06fc2e671 V 0.2.2 - Better plugins 10 years ago
J. Fernando Sánchez 8405e5deef Added plugin architecture 10 years ago
J. Fernando Sánchez 680f94a4fb First version for PyPi 10 years ago
J. Fernando Sánchez 3524f57209 Refactoring, name change 10 years ago