updated license info

This commit is contained in:
Muneeb Ali
2017-04-09 14:30:21 -04:00
parent abb2ce5e00
commit 8f3fb075b3
4 changed files with 69 additions and 12 deletions

View File

@@ -1,28 +1,42 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Onename API
Copyright 2014 Halfmoon Labs, Inc.
Blockstack Core
~~~~~
copyright: (c) 2014-2017 by Blockstack Inc.
copyright: (c) 2017 by Blockstack.org
This file is part of Blockstack Core.
Blockstack Core is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Blockstack Core is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Blockstack Core. If not, see <http://www.gnu.org/licenses/>.
"""
from flask import Flask, Blueprint
from flask_https import RequireHTTPS
from flask_sslify import SSLify
# Create app
app = Flask(__name__)
app.config.from_object('api.settings')
app.config.from_object('api.config')
if not (app.config.get('DEBUG')):
SSLify(app)
# Add in blueprints
from .auth import v1auth
from .resolver import resolver
blueprints = [v1auth]
blueprints = [resolver]
for blueprint in blueprints:
app.register_blueprint(blueprint)

View File

@@ -1,8 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Get DKIM info from DNS
Copyright 2015 Halfmoon Labs, Inc.
Blockstack Core
~~~~~
copyright: (c) 2014-2017 by Blockstack Inc.
copyright: (c) 2017 by Blockstack.org
This file is part of Blockstack Core.
Blockstack Core is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Blockstack Core is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Blockstack Core. If not, see <http://www.gnu.org/licenses/>.
"""
import socket

View File

@@ -1,3 +1,28 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Blockstack Core
~~~~~
copyright: (c) 2014-2017 by Blockstack Inc.
copyright: (c) 2017 by Blockstack.org
This file is part of Blockstack Core.
Blockstack Core is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Blockstack Core is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Blockstack Core. If not, see <http://www.gnu.org/licenses/>.
"""
import json
import requests
from flask import request

View File

@@ -25,7 +25,7 @@ This file is part of Blockstack Core.
import re
import json
from .settings import MAX_PROFILE_LIMIT
from .config import MAX_PROFILE_LIMIT
def build_api_call_object(text):