{ "info": { "author": "Sinfonier Project", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Other Audience", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Security" ], "description": "# Sinfonier API\n\n![Figure 1 - Sinfonier Simple View](docs/images/SinfonierSimple.png \"Figure 1 - Sinfonier Simple View\")\n\nSinfonier API was develop to manage [Sinfonier Backend](https://github.com/sinfonier-project/sinfonier-backend) and deal with Apache Storm cluster. This software is part of [Sinfonier-Project](http://sinfonier-project.net)\n\nSinfonier:\n\n> Sinfonier is a change in the focus in respect to current solutions in the area of processing information in real-time. We combine an easy-to-use interface, modular and adaptable, and we integrate it with an advanced technological solution to allow you to do the necessary tune up suitable for your needs in matters of information security.\n\nApache Storm:\n\n> Apache Storm is a free and open source distributed realtime computation system. Storm makes it easy to reliably process unbounded streams of data, doing for realtime processing what Hadoop did for batch processing. Storm is simple, can be used with any programming language, and is a lot of fun to use!\n\n# Description\n\n* Compile modules\n* Manage Sinfonier Backend classpath\n* Start/Stop Storm toplogies\n* Storm Log management\n\n# Installation\n\n## OS dependencies\n\n**Centos**:\n\n```bash\n$ sudo yum install python-crypto\n```\n\n**Debian / Ubuntu**:\n\n```bash\n$ sudo apt-get install python-crypto\n```\n\n## Python dependencies\n\n```bash\n$ sudo pip install -r requirements.txt\n```\n\n# Configuration \n\n## Associated services\n\nIn `config.py`:\n\n**MONGO CONFIG**\n\n```python\ndefine(\"port\", default=8899, help=\"run on the given port\", type=int)\ndefine(\"concurrency\", default=0, help=\"num of proceess\", type=int)\ndefine(\"mongo_host\", default=\"localhost\", help=\"sinfonier database host\")\ndefine(\"mongo_database\", default=\"sinfonier\", help=\"mongo database name\")\ndefine(\"mongo_collection\", default=\"topologies\", help=\"mongo collection name\")\n```\n\n**STORM CLUSTER GLOBAL CONFIG**\n\n```python\ndefine(\"storm_binary\", default=\"/bin/storm\", help=\"storm binay\")\ndefine(\"storm_global_jar_path\", default=\"/var/storm/lastjar/\", help=\"storm binary path\")\ndefine(\"storm_global_jar_bin\", default=\"sinfonier-community-1.0.0.jar\", help=\"storm binay\")\n```\n\n**TOPOLOGIES CONFIG**\n\n```python\ndefine(\"storm_topology_path\", default=\"/var/storm/topologies/\", help=\"storm xml path\")\ndefine(\"storm_topology_config_path\", default=\"/config/\", help=\"storm topology config folder\")\ndefine(\"storm_topology_data_path\", default=\"/data/storm/topologies/\", help=\"topologies data path\")\ndefine(\"storm_topology_jar_path\", default=\"/jar/\", help=\"storm topology config folder\")\n```\n\n**FOLDER STRUCTURE**\n\n /var/storm/topologies/{topologyName}/config/{topologyName}.xml\n\n**MAVEN CONFIG**\n\n```python\ndefine(\"maven_binary\", default=\"/bin/mvn\", help=\"maven binay\")\ndefine(\"maven_sinfonier_pom\", default=\"/var/storm/src/sinfonier_backend/pom.xml\", help=\"maven pom\")\ndefine(\"maven_sinfonier_m2_pom\", default=\"/var/storm/src/sinfonier_backend/m2-pom.xml\", help=\"maven m2-pom\")\n```\n\n**STORMBACKEND**\n\n```python\ndefine(\"backend_working_path\", default=\"/var/storm/src/sinfonier_backend/\", help=\"backend path\")\ndefine(\"backend_python_path\", default=\"/var/storm/src/sinfonier_backend/multilang/resources/\", help=\"backend python path\")\ndefine(\"backend_java_path\", default=\"/var/storm/src/sinfonier_backend/src/jvm/com/sinfonier/\", help=\"backend java path\")\n\ndefine(\"backend_java_path_drains\", default=\"/var/storm/src/sinfonier_backend/src/jvm/com/sinfonier/drains/\", help=\"backend drains\")\ndefine(\"backend_java_path_bolts\", default=\"/var/storm/src/sinfonier_backend/src/jvm/com/sinfonier/bolts/\", help=\"backend bolts\")\ndefine(\"backend_java_path_spouts\", default=\"/var/storm/src/sinfonier_backend/src/jvm/com/sinfonier/spouts/\", help=\"backend spouts\")\n```\n\n**API TEMPLATES**\n\n```python\ndefine(\"backend_template_path\", default=\"/opt/sinfonier-api/templates/\", help=\"API templates\")\n```\n\n**GIST CREDENTIALS**\n\n```python\ndefine(\"gist_api_token\",default=\"\",help=\"gist api token\")\ndefine(\"gist_username\",default=\"\",help=\"gist username\")\n```\n\n## Logging\n\nYou can customize the logging path setting the environment var:\n \n```bash\n# export SINFONIER_LOG=\"/var/log/sinfonier-log\"\n```\n\n**Make sure the log folder exits**, if not, app will crash.\n\n# Deploy\n\n## From source\n\n\n```bash\n$ cd /opt\n$ git clone https://github.com/sinfonier-project/sinfonier-api.git\n$ python sinfonierapicore.py\n```\n\n## From Pypi (RECOMENDED)\n\n```bash\n# pip install sinfonier-api\n# sinfonier-api\n\n```\n\n## Using Docker\n\n```bash\n# docker build -t sinfonier:api .\nSending build context to Docker daemon 816.6 kB\nStep 1 : FROM python:2.7\n ---> a047e3d0ae2b\nStep 2 : MAINTAINER Sinfonier Project\n ---> Using cache\n ---> be5b52b240e5\n ....\n\n# docker run -t sinfonier:api\n```\n\n## Project leads\n\n* Francisco J. Gomez @ffranz https://github.com/ffr4nz/\n* Alberto J. Sanchez @ajsanchezsanz https://github.com/ajsanchezsanz\n\n## Committers\n\n* Eva Suarez @EvaSuarez22\n* Pedro J. Martinez @pejema44\n* Daniel Garc\u00eda (cr0hn) - @ggdaniel\n\n## Contributors\n\n## License\n\nApache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0\n\n## References\n\n* http://www.tornadoweb.org/en/stable/\n* http://storm.apache.org/\n* https://maven.apache.org/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sinfonier-project/sinfonier-api", "keywords": null, "license": "Apache License", "maintainer": null, "maintainer_email": null, "name": "sinfonier-api", "package_url": "https://pypi.org/project/sinfonier-api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sinfonier-api/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sinfonier-project/sinfonier-api" }, "release_url": "https://pypi.org/project/sinfonier-api/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Sinfonier API was develop to manage Sinfonier Backend and deal with Apache Storm cluster. This software is part of Sinfonier-Project", "version": "1.0.0" }, "last_serial": 2181004, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c205cae90ff0b1543867994412fca85f", "sha256": "b3d16fef77c45f6db9fa0169295957056973bebc403a43cc513b83fc4b5c3f05" }, "downloads": -1, "filename": "sinfonier-api-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c205cae90ff0b1543867994412fca85f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21547, "upload_time": "2016-06-22T11:02:15", "url": "https://files.pythonhosted.org/packages/e1/1e/802d775dec093326411495e6ac1d5e67d3128eb914b08ad6c86ae281c633/sinfonier-api-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c205cae90ff0b1543867994412fca85f", "sha256": "b3d16fef77c45f6db9fa0169295957056973bebc403a43cc513b83fc4b5c3f05" }, "downloads": -1, "filename": "sinfonier-api-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c205cae90ff0b1543867994412fca85f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21547, "upload_time": "2016-06-22T11:02:15", "url": "https://files.pythonhosted.org/packages/e1/1e/802d775dec093326411495e6ac1d5e67d3128eb914b08ad6c86ae281c633/sinfonier-api-1.0.0.tar.gz" } ] }