Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🦔🛰 ↣ Boilerplate PR for ref #17

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# sytizen-unity
[![.github/workflows/moralis.yml](https://github.com/Signal-K/sytizen/actions/workflows/moralis.yml/badge.svg?branch=ansible)](https://github.com/Signal-K/sytizen/actions/workflows/moralis.yml) <br />
[![.github/workflows/moralis.yml](https://github.com/Signal-K/sytizen/actions/workflows/moralis.yml/badge.svg?branch=ansible)](https://github.com/Signal-K/sytizen/actions/workflows/moralis.yml)
<a href="https://thirdweb.com/goerli/0x325b9B364B7ca35B2400bC6b68d63FBc5c9eAF55?utm_source=contract_badge" target="_blank">
<img width="200" height="45" src="https://badges.thirdweb.com/contract?address=0x325b9B364B7ca35B2400bC6b68d63FBc5c9eAF55&theme=dark&chainId=5" alt="View contract" />
</a><br />
Citizen Science (Sci-tizen) visualisation in the Unity.com engine


Expand Down
674 changes: 674 additions & 0 deletions server/cli/LICENSE

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions server/cli/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import click
import lightkurve as lk

@click.command()
@click.argument('TIC_ID')
def main(TIC_ID):
print(text)

if __name__ == '__main__':
main()
9 changes: 9 additions & 0 deletions server/cli/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import setuptools

if __name__ == '__main__':
setuptools.setup()

[metadata]
name = ssk-ansible
version = 0.0.1-dev
description = Getting real-world scientific data
8 changes: 8 additions & 0 deletions server/cli/tests/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import unittest

class TestImport(unittest.TestCase):
"""A test case for import tests."""

def test_import(self):
"""Test that PyBEL can be imported."""
import pybel
13 changes: 13 additions & 0 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from flask_cors import CORS, cross_origin
import time

import click

#from models.planets import planets
from data.store import planets, add_planet_to_DB

Expand All @@ -12,6 +14,17 @@
db = SQLAlchemy(app) # Wrap the database around the flask app
CORS(app)

# CLI Main
@click.group()
def main():
pass

@click.command()
def web():
from .wsgi import app
app.run()

# Begin flask routes
@app.route('/')
def hello_world():
return jsonify({
Expand Down
21 changes: 21 additions & 0 deletions server/models/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
flask = "*"
python-dotenv = "*"
flask-sqlalchemy = "*"
flask-restful = "*"
lightkurve = "*"
supabase-py = "*"
cuttle = "*"
click = "*"
kaggle = "*"
anvil-uplink = "*"

[dev-packages]

[requires]
python_version = "3.10"
1,799 changes: 1,799 additions & 0 deletions server/models/Pipfile.lock

Large diffs are not rendered by default.

Loading