repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
Syu-syusan/internship
microservices/svc/echo/conf.py
<reponame>Syu-syusan/internship import os APP_ADDRESS = os.environ.get("ECHO_ADDRESS", "0.0.0.0:5050") APP_IP_ADDRESS = APP_ADDRESS.split(":")[0] APP_PORT = int(APP_ADDRESS.split(":")[1])
thulio/restQL-python
tests/test_client.py
import unittest import mock import requests from restQL.client import Client from tests import load_fixture class TestClient(unittest.TestCase): def setUp(self): self.requests_post_patcher = mock.patch.object(requests, 'post') self.requests_post_mock = self.requests_post_patcher.start() ...
thulio/restQL-python
setup.py
# -*- coding: utf-8 -*- import codecs import os.path from setuptools import setup, find_packages PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(PROJECT_DIR, 'README.rst'), encoding='utf-8') as f: long_description = '\n' + f.read() setup( name='restQL', version='0.1...
thulio/restQL-python
restQL/client.py
from __future__ import unicode_literals import requests import six from box import Box class Client: RUN_QUERY = '/run-query' PARSE_QUERY = '/parse-query' def __init__(self, url, extra_params=None): self.url = url self.params = extra_params or {} self.headers = {'Content-type': '...
thulio/restQL-python
tests/__init__.py
import json import os.path import sys HERE = os.path.abspath(os.path.dirname(__file__)) def load_fixture(fixture_name): with open(os.path.join(HERE, 'fixtures', fixture_name)) as f: return json.loads(f.read()) if sys.version_info.major > 2: # mock is part of python3 stdlib import sys from u...
muhfadh/flask-image-processing
process.py
import cv2 import numpy as np def gaussian_adaptive_thresh(img): image = cv2.imread(img) gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) blurred = cv2.GaussianBlur(gray, (7, 7), 0) thresh = cv2.adaptiveThreshold(blurred, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY_INV, 21, 4) return thres...
spatialaudio/doa-early-room-reflections-pwd-vs-omp
iear.py
"""Identification of Early Reflections by Spherical Microphone Arrays""" # <NAME>, University of Rostock # source angles point towards source for plane wave/point source (= incidence angle of pwd) import numpy as np from numpy.core.umath_tests import inner1d from scipy import signal from scipy import special import ...
Juenjie/BananaBrain
model.py
import torch import torch.nn as nn import torch.nn.functional as F class QNetwork(nn.Module): """Actor (Policy) Model""" def __init__(self, state_size, action_size, seed): """Initialize parameters and build model. Params ====== state_size (int): Dimensions of each state...
renoust/dython
dython/__init__.py
import warnings # Version __version__ = '0.2.0' # Check for dependencies hard_dependencies = ['numpy','pandas','seaborn','scipy','matplotlib','sklearn'] missing_dependencies = [] for dependency in hard_dependencies: try: __import__(dependency) except ImportError as e: missing_dependencies.ap...
renoust/dython
dython/model_utils.py
<filename>dython/model_utils.py<gh_stars>0 import numpy as np import matplotlib.pyplot as plt import dython.nominal as nominal from scipy import interp from sklearn.metrics import roc_curve, auc from dython._private import convert def _display_plot(): plt.plot([0, 1], [0, 1], color='grey', lw=1, linestyle='--') ...
renoust/dython
dython/_private.py
<gh_stars>0 import numpy as np import pandas as pd def convert(data, to): converted = None if to == 'array': if isinstance(data, np.ndarray): converted = data elif isinstance(data, pd.Series): converted = data.values elif isinstance(data, list): conv...
lood339/two_point_calib
python/util.py
<filename>python/util.py import numpy as np import math def focal_length_from_two_points(a, b, c, d): """ Brief: focal length from two points See appendex 6.1 Focal Length from Two Points :param a: :param b: :param c: :param d: :return: 0 (failed) or focal lenth in pixels """ c...
lood339/two_point_calib
python/two_point_calib_demo.py
""" % clear close all; % ground truth, ptz ptz = [0.520949 -11.433174 1919.092246]'; pp = [1280.0/2, 720.0/2]'; w = 1280; h = 720; % random sample two points N = 100; errors = zeros(N, 3); for i = [1:N] % generate two image location point1 = zeros(2, 1); point2 = zeros(2, 1); point1(1) = randi(w, ...
davidbailey/etc
py/splunkfile.py
<gh_stars>0 import pandas as pd import re //checked = input[(input['_raw'].str.contains(name, case=False))] names = ['name1','name2'] for name in names: infile = name + '.csv' outfile = 'success-' + name + '.csv' input = pd.read_csv(infile, sep=',') checked = input if not checked.empty: success = checked[(che...
davidbailey/etc
py/gis.py
<reponame>davidbailey/etc<filename>py/gis.py import shapely.geometry import matplotlib.pyplot as plt import fiona.collection import descartes places = {'Los Angeles': (34.0204989,-118.4117325), 'Phoenix': (33.6054149,-112.125051), 'Albuquerque': (35.0824099,-106.6764794)} path = [(x, y) for y, x in places.values()] l...
davidbailey/etc
py/delicious.py
import re title_pattern = '" PRIVATE="0" TAGS="">(.*)</A>' link_pattern = '<DT><A HREF="(.*)" ADD_DATE.*' date_pattern = 'ADD_DATE="(.*)" PRIVATE="0"' with open('Desktop/delicious.html') as f: for line in f: title = re.search(title_pattern,line).group(1) link = re.search(link_pattern,line).group(1) date...
davidbailey/etc
py/oktaAppSAML.py
<reponame>davidbailey/etc<gh_stars>0 import requests import json # everything returns a 2xx on success and a 4xx on errors oktaAPIToken = "" oktaOrg = "org.oktapreview.com" # org.okta.com or org.oktapreview.com headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'SSWS ' + ok...
davidbailey/etc
py/speeds2.py
<filename>py/speeds2.py import gpxpy from os.path import expanduser from math import sqrt from shapely.geometry import Point import geopandas import numpy from matplotlib import pyplot with open(expanduser('~/Desktop/2016-06-14 19_13_54.gpx'), 'r') as gpx_file: gpx = gpxpy.parse(gpx_file) gpx.tracks[0].segments[0]....
davidbailey/etc
py/iphorse.py
<filename>py/iphorse.py<gh_stars>0 import requests r = requests.get('http://iphorse.com/json.php') r.json()['remote_addr'] import yaml print yaml.safe_dump(r.json(), default_flow_style=False)
davidbailey/etc
js/dendrogram.py
<reponame>davidbailey/etc<gh_stars>1-10 import json from string import Template def dendrogram(d): """ Template generator for creating a D3 dendrogram """ template = Template( """ <script src="https://d3js.org/d3.v4.js"></script> <svg id="svg" width="1400" height="1000"> <style> ...
davidbailey/etc
py/getFlows.py
<gh_stars>0 from lxml import etree from cStringIO import StringIO import pycurl import pandas as pd import datetime start = datetime.datetime(2014,9,19) finish = datetime.datetime(2014,11,2) delta = datetime.timedelta(hours=1) times = [] while start <= finish: times.append(start) start += delta for start in times: ...
davidbailey/etc
py/ad.py
import ldap import pandas import datetime.datetime from ldap_paged_search import LdapPagedSearch host = 'ldaps://example.com:636' username = 'domain\\username' password = 'password' baseDN = 'DC=example,DC=com' filter = "(&(objectCategory=computer))" #attributes = ['dn'] attributes = ['*'] #ldap.set_option(ldap.OPT_...
davidbailey/etc
py/finance.py
<filename>py/finance.py import math import csv import numpy import numpy as np import scipy as sp import matplotlib as mpl import matplotlib.pyplot as plt import scipy.fftpack import datetime import pandas as pd from scipy import stats def pv(fv,r): return (fv/(1+r)) def pvSum(c,r): //PV as a sum of cash flows c w/ ...
davidbailey/etc
py/getS3Files.py
<reponame>davidbailey/etc import s3 bucket_name = 'your-bucket' local_directory = '/Users/user/Desktop/directory/' connection = s3.S3Connection(access_key_id='', secret_access_key='', region='us-west-2', endpoint='s3-us-west-2.amazonaws.com', default_bucket=bucket_name) storage = s3.Storage(connection) for bucket in...
davidbailey/etc
py/county-map.py
import overpy import numpy from matplotlib import pyplot from shapely.geometry import LineString from shapely.geometry import shape from shapely.geometry import box from shapely.ops import polygonize_full from descartes import PolygonPatch from fiona import collection features = collection("~/Desktop/gshhg-shp-2/GSHHS...
davidbailey/etc
py/salesforceDisableUsers.py
<filename>py/salesforceDisableUsers.py from os.path import expanduser from suds.client import Client import pandas stg = pandas.read_csv(expanduser('~/Desktop/salesforce-stg.csv')) prod = pandas.read_csv(expanduser('~/Desktop/salesforce-prod.csv')) removeBits = lambda x: x.split("=")[0].split("@")[0] stg['Prefix'] =...
davidbailey/etc
py/transportationDataBook.py
<reponame>davidbailey/etc import pandas import psycopg2 import sqlite3 from matplotlib import pyplot from scipy.stats.kde import gaussian_kde import rpy2.robjects as robjects import numpy import scipy.stats as stats import statsmodels.api as sm from math import sqrt import datetime from os import system system('ls') s...
davidbailey/etc
py/stocks.py
<reponame>davidbailey/etc<gh_stars>0 import datetime import numpy as np import statsmodels.api as sm import statsmodels.formula.api as smf import matplotlib.pyplot as plt import pandas as pd from scipy import stats from pandas.io.data import DataReader stock = DataReader("IVV", "yahoo", start=datetime.datetime(1950, 1...
davidbailey/etc
py/405.py
<filename>py/405.py import pandas from matplotlib import pyplot urls = { 2015: 'http://dot.ca.gov/trafficops/census/docs/2015aadt.xls', 2014: 'http://dot.ca.gov/trafficops/census/docs/2014aadt.xlsx', 2013: 'http://dot.ca.gov/trafficops/census/docs/2013aadt.xlsx', 2012: 'http://dot.ca.gov/trafficops/census/docs/201...
davidbailey/etc
py/datasetRegressionExample.py
import pandas from scipy import optimize from sklearn import linear_model from math import exp, factorial from scipy.stats import poisson from statsmodels.api import OLS from statsmodels.discrete.discrete_model import Poisson from statsmodels.tools import add_constant df = pandas.read_csv('datasetRegressionExample.csv...
davidbailey/etc
py/movies.py
<gh_stars>0 import pandas import requests movies = pandas.read_csv('https://raw.githubusercontent.com/davidbailey/Notes/master/Movies.csv') for movie in movies.Title: r = requests.get('https://www.omdbapi.com/?t=' + movie) print(r.json()['Title'], r.json()['Year'])
davidbailey/etc
py/flowPairCheck.py
<filename>py/flowPairCheck.py<gh_stars>0 import pandas as pd import numpy as np clientHosts = ['0.0.0.0','1.1.1.1'] serverHosts = ['192.168.3.11','172.16.31.10'] netflowDF = pd.read_csv('netflow.csv', sep=',') get = lambda Num, clientHost, serverHost : '' if netflowDF[(netflowDF['Client Host'] == clientHost ) & (net...
davidbailey/etc
py/trafficSim.py
from math import sqrt People = [] class Person: def __init__(self,route): self.arrived = False self.travelTime = 0 self.route = route self.currentRouteSegment = self.route.pop() self.positionOnCurrentRouteSegment = 0 self.width = 2 self.length = 2 def Walk(self): self.travelTime += 1 if isinstance(...
davidbailey/etc
js/radar_chart.py
import json from string import Template def radar_chart(legend_options, d, title): """ Template generator for creating a D3 radar chart """ template = Template( """ <script src="https://d3js.org/d3.v3.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/davidbailey/dpd@master/js/...
davidbailey/etc
py/podcast.py
import pandas import pafy import requests from cgi import escape from urllib import urlencode from email.Utils import formatdate from bottle import route, run, template music = pandas.read_csv('https://raw.githubusercontent.com/davidbailey/Notes/master/Music.csv') #urls = ["https://www.youtube.com/watch?v=c2hkO5olZAg"...
davidbailey/etc
py/splunk.py
import socket import splunklib.client as client import splunklib.results as results import re import numpy as np import pandas as pd from geoip import geolite2 from ipwhois import IPWhois import ipwhois headers = [('address','user','user2','logontype','time','raw')] data = [] get_address = lambda x: re.findall('(Sour...
davidbailey/etc
py/fourStepModel.py
<filename>py/fourStepModel.py<gh_stars>0 import requests import pandas import geopandas import json import math from haversine import haversine from ipfn import ipfn import networkx from matplotlib import pyplot from matplotlib import patheffects url = 'https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Sta...
davidbailey/etc
py/basemap.py
from mpl_toolkits.basemap import Basemap from matplotlib import pyplot import numpy as np ''' import CoreLocation manager = CoreLocation.CLLocationManager.alloc().init() manager.delegate() manager.startUpdatingLocation() loc = manager.location() if loc is None: lat, lon = 0,0 else: coord = loc.coordinate() lat, lon...
davidbailey/etc
py/speeds.py
import requests import io import zipfile import pandas import numpy #import gtfstk from shapely.geometry import Point from shapely.geometry import LineString import matplotlib.pyplot as plt from datetime import timedelta from os.path import expanduser import geopandas from bottle import route, run, template def combin...
davidbailey/etc
py/pieSensors.py
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) channel = 11 GPIO.setup(channel, GPIO.OUT) import smbus from time import sleep bus = smbus.SMBus(1) address = 0x48 import Adafruit_BMP.BMP085 as BMP085 bmp085 = BMP085.BMP085() from time import time while(True): bus.write_i2c_block_data(address, 0x01, [229,131]) ...
davidbailey/etc
py/pie.py
<reponame>davidbailey/etc<filename>py/pie.py<gh_stars>0 # Pinout Diagram: https://pinout.xyz # GPIO - Digital Output from MQ4 (Combustable Gas), MQ7 (CO), HR202 (Humidity) - Connect 3.3V, GND, GPIO import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) # or GPIO.BCM mode = GPIO.getmode() channel = 8 GPIO.setup(channel, GPIO...
davidbailey/etc
py/TransportationModel.py
<gh_stars>0 import pandas import geopandas import requests def TripGeneration(): originDestinationFile = '/Users/david/Desktop/maps/ca_od_2013/ca_od_main_JT0.csv' originDestination = pandas.DataFrame.from_csv(originDestinationFile) originDestination.reset_index(inplace=True) return originDestination def TripD...
davidbailey/etc
py/pandas-stacked-bar.py
<gh_stars>0 import pandas from matplotlib import pyplot df = pandas.DataFrame([431-106,106]) df = df.transpose() df.columns=['complete','incomplete'] df.plot(kind='bar', stacked=True, legend=False) pyplot.show()
davidbailey/etc
py/freq.py
<reponame>davidbailey/etc import pandas as pd import matplotlib.pyplot as plt freq = pd.read_csv('frequency.csv', sep=',') freq['count'].plot() plt.show()
davidbailey/etc
py/railRadius.py
<gh_stars>0 import geopandas import overpass import math api = overpass.API() name = 'Pacific Coast Highway' response = api.Get('way["name"="' + name + '"]') with open('temp.tmp', 'w') as f: f.write(str(response)) gdf = geopandas.read_file('temp.tmp') def points2radius(pt1, pt2, pt3): a = math.sqrt((pt1[0] - pt...
davidbailey/etc
py/walkbike2015.py
import requests import pandas import geopandas modes = {'Total': 'B08006_001E', 'Car, truck, or van': 'B08006_002E', 'Drove alone': 'B08006_003E', 'Carpooled': 'B08006_004E', 'In 2-person carpool': 'B08006_005E', 'In 3-person carpool': 'B08006_006E', 'In 4-o r-more-person carpool': 'B08006_007E', 'Public transporta...
davidbailey/etc
py/map-state.py
<filename>py/map-state.py import overpy import numpy import pickle from matplotlib import pyplot from shapely.geometry import LineString from shapely.geometry import shape from shapely.geometry import box from shapely.ops import polygonize_full from descartes import PolygonPatch from fiona import collection features =...
davidbailey/etc
py/risk.py
<filename>py/risk.py import numpy as np #from pylab import * import matplotlib.pyplot as plot import math top = np.array([[0,1,2],[2,2,1]]) mid = np.array([[0,1,2],[2,1,0]]) bot = np.array([[0,1,2],[2,0,0]]) plot.plot(top[0],top[1]) plot.plot(mid[0],mid[1]) plot.plot(bot[0],bot[1]) t = np.arange(0.0, 10.0, 0.1) top2...
davidbailey/etc
py/walkingcycling.py
import pandas import re import os import geopandas import requests from matplotlib import pyplot import matplotlib from biokit.viz import corrplot from ftplib import FTP import zipfile import io import pandas from dbfread import DBF # get mode share census data for one year from https://www.census.gov/data/developers/...
davidbailey/etc
py/highwayDesign.py
<filename>py/highwayDesign.py from sympy import * Ra, Rrlf, Rrlr, Ff, Fr, W, Thetag, m, a, Rho, CD, Af, V, hpRa, frl, Rrl, hpRrl, Rg, G, Wf, Wr, h, lf, lr, L, F, Fmax, Mu = symbols('Ra Rrlf Rrlr Ff Fr W Thetag m a Rho CD Af V hpRa frl Rrl hpRrl Rg G Wf Wr h lf lr L') # Equation 2.1 solve(-Ff -Fr +m*a +Ra +Rrlf +Rrlr ...
davidbailey/etc
py/oktaDiffSlack.py
import json import requests slackAPIToken = "" oktaAPIToken = "" oktaGroup = "" oktaOrg = "" slackDeleted = [] slackBots = [] slackRestricted = [] slackUsers = [] r = requests.get("https://slack.com/api/users.list?token=" + slackAPIToken) slackUsersJson = r.json() for user in slackUsersJson['members']: if (user['d...
davidbailey/etc
py/oktaDiffDropbox.py
<reponame>davidbailey/etc<filename>py/oktaDiffDropbox.py<gh_stars>0 import json import requests dropboxAPIToken = "" oktaAPIToken = "" oktaGroup = "" oktaOrg = "" dropboxUsers = [] r = requests.post("https://api.dropboxapi.com/2/team/members/list", headers={'Authorization': 'Bearer ' + dropboxAPIToken, 'Content-Type'...
davidbailey/etc
py/nessus_report.py
import os import sqlite3 conn = sqlite3.connect('nessus.db') c = conn.cursor() os.mkdir('nessus_report_output') departments = [] c.execute('SELECT DISTINCT Department FROM dates ORDER BY Department') for row in c.fetchall(): departments.append(row[0]) vulnerabilities = ['MySQL Default Account Credentials','SNMP Agen...
davidbailey/etc
py/gpx.py
import gpxpy gpx_file = open("file", 'r') gpx = gpxpy.parse(gpx_file) points = [] for point in gpx.tracks[0].segments[0].points: points.append((point.latitude,point.longitude,point.elevation,point.time))
davidbailey/etc
py/usc.py
from os.path import expanduser import pandas import matplotlib.pyplot as plt import numpy df = pandas.DataFrame.from_csv(expanduser('~/Desktop/usc.csv'), index_col=False) df.Country.value_counts() # total by country for place in ['Gold', 'Silver', 'Bronze']: # g,s,b by sport print '\n\n', place, '\n' df[df['Plac...
davidbailey/etc
py/oktaDiffSalesforce.py
<reponame>davidbailey/etc from os.path import expanduser from suds.client import Client import pandas import re sfurl = "https://org.my.salesforce.com/services/Soap/c/36.0/XXXXXXXXXXXXXXX" username = "" password = "" security_token = "" client = Client(expanduser('~/Desktop/enterprise.wsdl.xml')) login_request = clie...
davidbailey/etc
py/csv 2 json or html table.py
<reponame>davidbailey/etc<filename>py/csv 2 json or html table.py import pandas import json df = pandas.read_csv('file.csv', encoding='utf-8-sig') headers = map(lambda x: x, df.columns) output = {'headers': headers} output.update({'values': json.loads(df.to_json(orient='records'))}) #print json.dumps(output) ### /\...
davidbailey/etc
py/oktaDiffCSV.py
from os.path import expanduser import json import requests import pandas oktaAPIToken = "" oktaGroup = "" oktaOrg = "" appUsers = [] df = pandas.read_csv(expanduser('~/Desktop/users.csv')) for email in df.index: appUsers.append(email) oktaUsers = [] r = requests.get("https://" + oktaOrg + ".okta.com/api/v1/groups/...
davidbailey/etc
py/oktaDiffTxt.py
import json import requests oktaAPIToken = "" oktaGroup = "" oktaOrg = "" appUsers = [] with open('appUsers.txt', 'r') as appFile: for line in appFile: appUsers.append(line.strip().lower()) oktaUsers = [] r = requests.get("https://" + oktaOrg + ".okta.com/api/v1/groups/" + oktaGroup + "/users", headers={'Autho...
cristianwebber/B3-stocks-telegram-bot
start.py
import logging import os import sys from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext, Filters, MessageHandler import pandas as pd from pandas_datareader import data as web import yfinance as yf from datetime import datetime, timedelta # Enabling logging logging.b...
sa002999/drinkorder
app_run.py
from flask import Flask, request, abort from linebot import ( LineBotApi, WebhookHandler ) from linebot.exceptions import ( InvalidSignatureError, LineBotApiError ) from linebot.models import * import os, re from dbModel import * import datetime app = Flask(__name__) # get enviroment variables YOUR_CHANNEL_A...
sa002999/drinkorder
dbModel.py
<reponame>sa002999/drinkorder<gh_stars>0 from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_script import Manager from flask_migrate import Migrate, MigrateCommand import datetime import os SQLALCHEMY_DATABASE_URI = os.environ["DATABASE_URL"] app = Flask(__name__) app.config['SQLALCHEMY_DATAB...
Curi-Bio-CI/pre-commit-python-stdlib
prerelease.py
<reponame>Curi-Bio-CI/pre-commit-python-stdlib<filename>prerelease.py # -*- coding: utf-8 -*- """Do the checks and tasks that have to happen before doing a release.""" from __future__ import unicode_literals import datetime import logging import sys from zest.releaser import baserelease from zest.releaser import util...
Curi-Bio-CI/pre-commit-python-stdlib
src/change_this_to_name_of_package/__init__.py
<filename>src/change_this_to_name_of_package/__init__.py # -*- coding: utf-8 -*- """Docstring.""" try: # adapted from https://packaging.python.org/guides/single-sourcing-package-version/ from importlib import metadata except ImportError: # pragma: no cover # Running on pre-3.8 Python; use importlib-metadata ...
PRABHU12345384/Python-Personal-Assistant
jarvis_assistant.py
import pyttsx3 import datetime import speech_recognition as sr import wikipedia import webbrowser import os import smtplib # defining the engine function engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') # fetches the available voices in this device engine.setProperty('voice', voices[...
Cytomine-ULiege/pims
pims/config.py
<filename>pims/config.py # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICE...
Cytomine-ULiege/pims
pims/api/metadata.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/utils/reader.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/utils/engines/pil.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
tests/conftest.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/utils/iterables.py
<reponame>Cytomine-ULiege/pims # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/license...
Cytomine-ULiege/pims
pims/formats/common/jpeg2000.py
<reponame>Cytomine-ULiege/pims<gh_stars>1-10 # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apac...
Cytomine-ULiege/pims
pims/formats/utils/engines/omexml.py
<gh_stars>1-10 # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # ...
Cytomine-ULiege/pims
pims/application.py
<filename>pims/application.py # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses...
Cytomine-ULiege/pims
pims/utils/vips.py
<reponame>Cytomine-ULiege/pims # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/license...
Cytomine-ULiege/pims
pims/processing/adapters.py
<gh_stars>1-10 # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # ...
Cytomine-ULiege/pims
pims/api/formats.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/files/file.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/common/webp.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/api/colormaps.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/fastapi_tweaks.py
<reponame>Cytomine-ULiege/pims<gh_stars>1-10 # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apac...
Cytomine-ULiege/pims
pims/formats/utils/structures/metadata.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/common/png.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/api/utils/models.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
docker/plugins.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/utils/engines/tifffile.py
<reponame>Cytomine-ULiege/pims # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/license...
Cytomine-ULiege/pims
pims/processing/histograms/utils.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/processing/image_response.py
<reponame>Cytomine-ULiege/pims # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/license...
Cytomine-ULiege/pims
pims/formats/utils/abstract.py
<gh_stars>1-10 # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # ...
Cytomine-ULiege/pims
pims/cache.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/utils/factories.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/common/dicom.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/utils/engines/vips.py
<filename>pims/formats/utils/engines/vips.py # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apac...
Cytomine-ULiege/pims
pims/formats/common/ometiff.py
<reponame>Cytomine-ULiege/pims # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/license...
Cytomine-ULiege/pims
tests/test_processing_operations.py
<reponame>Cytomine-ULiege/pims # * Copyright (c) 2020. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2....
Cytomine-ULiege/pims
pims/processing/operations.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/api/filters.py
<filename>pims/api/filters.py # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses...
Cytomine-ULiege/pims
pims/api/utils/response.py
<gh_stars>1-10 # * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # ...
Cytomine-ULiege/pims
pims/files/archive.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
Cytomine-ULiege/pims
pims/formats/utils/structures/planes.py
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...