src
stringlengths
721
1.04M
from django.core.exceptions import ImproperlyConfigured from django.db import transaction from django.utils.module_loading import import_string from django.utils.translation import gettext_lazy as _ from rest_framework import status from rest_framework.decorators import action from rest_framework.exceptions import Vali...
#!C:/Users/Greg/Anaconda/Python import json from time import time from os import listdir import re import numpy as np from random import shuffle from pprint import pprint #Folder with json files path = "./json/" # Function to load all json files into python def merge_json(path): merged_json = [] for filename in lis...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.urlresolvers import reverse from django.db.models import Avg, Count from django.db import models from django.utils import timezone from timezone_field import TimeZoneField from phonenumber_field.modelfields import PhoneNumberField from ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the GRR base collector.""" import unittest import mock from grr_api_client import errors as grr_errors from dftimewolf.lib import state from dftimewolf.lib import errors from dftimewolf.lib.collectors import grr_base from dftimewolf import config ACCESS_FORBI...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright © 2017 Taylor C. Richberger <taywee@gmx.com> # This code is released under the license described in the LICENSE file from __future__ import division, absolute_import, print_function, unicode_literals from six.moves import zip from texttables.dialect import Dia...
# -*- coding: utf-8 -*- import re import sys from setuptools import setup from setuptools.command.test import test as TestCommand REQUIRES = [ 'docopt', ] class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = Tr...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from eve.uti...
#!/usr/bin/env python #from beginner_tutorials.srv import * from aimm_srv.srv import hksGripper import rospy import socket import string from PIL import Image,ImageFont,ImageDraw HOST = '192.168.1.101' # The remote host PORT = 13000 # The same port as used by the server s = None state = 0; def h...
""" Contains information regarding an ArcGIS Server Feature Server """ from re import search from .._abstract.abstract import BaseAGSServer, BaseSecurityHandler from ..security import security import layer import json from ..common.geometry import SpatialReference from ..common.general import FeatureSet from ..commo...
# Copyright (C) 2009 by Jelmer Vernooij <jelmer@samba.org> # # This program 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 2 of the License, or # (at your option) any later version. # # This pr...
# Copyright 2016 Google Inc. All Rights Reserved. # # 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 required by applicable law or a...
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hp.com> # # 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/L...
"""Panel OSM Queries based on Overpass base class.""" import io from qgis.core import ( Qgis, QgsCoordinateReferenceSystem, QgsCoordinateTransform, QgsGeometry, QgsProject, QgsRectangle, QgsVectorLayer, ) from qgis.PyQt.QtWidgets import QCompleter, QDialog from QuickOSM.core.exceptions im...
# Copyright 2018 D-Wave Systems Inc. # # 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 required by applicable law or...
import pytest import time from anchore_engine.apis.oauth import merge_client_metadata from anchore_engine.apis.oauth import ( setup_oauth_client, OAuth2Client, CLIENT_GRANT_KEY, ANONYMOUS_CLIENT_ID, ) @pytest.mark.parametrize( "existing_metadata, meta_to_add, expected_output", [ ( ...
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
# -*- coding: utf-8; mode: python -*- # Copyright (C) 2017 Johannes Grassler <johannes@btw23.de> # # This program 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 2 # of the License, or (at your...
"""fips imported code generator for testing""" Version = 2 import genutil as util #------------------------------------------------------------------------------- def generateHeader(func_name, msg, hdrPath) : with open(hdrPath, 'w') as f : f.write("// #version:{}#\n".format(Version)) f.write("ex...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, print_function import io import os import re from glob import glob from os.path import basename from os.path import dirname from os.path import join from os.path import relpath from os.path import splitext from setuptools import f...
""" AutoSlugField taken from django-extensions at 15d3eb305957cee4768dd86e44df1bdad341a10e Uses Oscar's slugify function instead of Django's Copyright (c) 2007 Michael Trier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
# -*- coding: utf-8 -*- #====================================================================== # This file is part of "Museo-Cachi". # # Museo-Cachi 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,...
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.http import HttpResponse from ..forms import UploadFileForm from ..csvmgr import (import_active_contracts, import_new_admissions, import_move_outs, ...
# -*- coding: utf-8 -*- # # This file is part of the jabber.at homepage (https://github.com/jabber-at/hp). # # This project 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 (...
import theano import theano.tensor as tensor import numpy def itemlist(tparams): return [vv for kk, vv in tparams.iteritems()] """ General Optimizer Structure: (adadelta, adam, rmsprop, sgd) Parameters ---------- lr : theano shared variable learning rate, currently only necessaary for sgd tparam...
# -*- coding: utf-8 -*- from flask import (Blueprint, redirect, url_for, render_template, flash, request, abort, send_file, current_app) from flask_babel import gettext from sqlalchemy.orm.exc import NoResultFound import crypto_util import store from db import db_session, Submission from journalis...
r''' Plot and/or check. Usage: script [options] Options: -s, --save Save output for later check. -c, --check Check against earlier results. -p, --plot Plot. -h, --help Show this help. ''' # <snippet> import numpy as np import GooseEYE # generate image I = np.zeros((21, 21)...
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Framework Package. This package holds all Data Management, and # Web-UI helpful to run brain-simulations. To use it, you also need do download # TheVirtualBrain-Scientific Package (for simulators). See content of the # documentation-folder for more details. See also http:/...
import sys # where RobotControl.py, etc lives sys.path.append('/home/pi/Desktop/ADL/YeastRobot/PythonLibrary') from RobotControl import * ################################# ### Define Deck Layout ################################# deck="""\ DW96P DW96P DW96W DW96W BLANK DW96P DW96P DW96W DW96W BLANK DW96P DW...
""" Django template loader that allows you to load a template from a specific Django application. """ from os.path import dirname, join, abspath from django.conf import settings from django.template.base import Origin from django.template.loaders.filesystem import Loader as FilesystemLoader try: from impor...
import liveconnect import liveconnect.exceptions import requests import urllib def connect_skydrive(): client_id = liveconnect.config.get('liveconnect', 'client_id') client_secret = liveconnect.config.get('liveconnect', 'client_secret') return SkyDrive(client_id, client_secret) class SkyDrive(liveconnect....
# -*- coding: utf-8 -*- import random import src.constants as c from src.allele import Allele from src.locus import Locus from src.individual import Individual try: from tabulate import tabulate except ImportError: raise ImportError('>> pip install tabulate') class Population(object): """ docstring ...
""" Test uploaded files. """ import os from shutil import copyfile from regression.tests.studio.studio_base_test import StudioBaseTestClass from regression.pages.studio.utils import upload_new_file from regression.pages.studio.login_studio import StudioLogin from regression.tests.helpers import LoginHelper, get_course_...
#!/usr/bin/env python # -*- coding: utf-8 -*- ###################################################################### # Copyright C 2015 Faurecia (China) Holding Co.,Ltd. # # All rights reserved # # Name: host.py # Author: Canux canuxcheng@163.com ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-02 18:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0010_homepage_share_image'), ] operations ...
# -*- coding: utf-8 -*- import sys import os __author__ = 'ilya-il' # ================================================== # PROGRAM CONFIG SECTION. DO NOT EDIT! # ================================================== # WTF forms CSRF_ENABLED = True SECRET_KEY = 'sifdjncs-dcqodicnpdscn[osncpas#vaidcjnsajcacbqisbcc...
from base64 import standard_b64encode import time import urllib.parse from storage.db_interface_backend import BackEndDbInterface from test.acceptance.base import TestAcceptanceBase from test.common_helper import create_test_firmware class TestIntegrationRestDownloadFirmware(TestAcceptanceBase): def setUp(self)...
# Generated by Django 2.0 on 2017-12-04 00:09 import definable_serializer.models.compat import definable_serializer.models.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [...
import os import tempfile import unittest import logging from pyidf import ValidationLevel import pyidf from pyidf.idf import IDF from pyidf.natural_ventilation_and_duct_leakage import AirflowNetworkSimulationControl log = logging.getLogger(__name__) class TestAirflowNetworkSimulationControl(unittest.TestCase): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2017 liangzy # # 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 required...
# -*- coding: utf-8 -*- """Tests handling of text encoding""" import os import pytest import declxml as xml _PROCESSOR = xml.dictionary('root', [ xml.string('value') ]) _VALUE = { 'value': u'Hello, 世界!', } _XML_STRING = u"""<root><value>Hello, 世界!</value></root>""" _XML_STRING_INDENTED = u"""<?xml v...
import json import statistics from django.db import models from django.db.models import DateTimeField from django.db.models import CharField from django.db.models import FloatField from django.db.models import EmailField from django.db.models import BooleanField from django.db.models import PositiveSmallIntegerField f...
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.build_graph.mirrored_target_option_mixin import MirroredTargetOptionMixin from...
from pycp2k.inputsection import InputSection class _each304(InputSection): def __init__(self): InputSection.__init__(self) self.Just_energy = None self.Powell_opt = None self.Qs_scf = None self.Xas_scf = None self.Md = None self.Pint = None self.Meta...
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
''' Control over attelo parsers as might be needed for a test harness ''' from __future__ import print_function from os import path as fp import os import sys from joblib import (delayed) from ..io import (write_predictions_output) from attelo.decoding.util import (prediction_to_triples) from attelo.fold import (sel...
# -*- coding: utf-8 -*- """dummy docstring.""" import argparse from qiidly import __version__, __description__ from qiidly.main import Qiidly def _arg_parser(): parser = argparse.ArgumentParser( prog='qiidly', description=__description__) parser.add_argument('-V', '--version', ...
# -*- coding: utf-8 -*- """ Created on Wed Deb 14 14:21:41 2018 Script to query TNS with different parameters: either for transients discovered between two different dates, or a cone search radius around a given RA, DEC @author: nadiablago """ from __future__ import print_function try: # For Python 3.0 and later ...
#!/usr/bin/env python ''' Camshift node ================ This is a ros node that shows mean-shift based tracking You select a color objects such as your face and it tracks it. This subscrib from "/image" topic for reading image, and publish the information of target to "/TargetPositionSize" or "/roi" topic. The posit...
""" .. module:: auth :synopsis: All routes on the ``auth`` Blueprint. .. moduleauthor:: Dan Schlosser <dan@danrs.ch> """ import string import random import httplib2 from app import app from app.lib.networking import json_response from app.models import User, Whitelist from app.forms import CreateProfileForm from ...
# -*- coding: utf-8 -*- import math import zope.event from bika.lims.utils import formatDecimalMark from Products.Archetypes.event import ObjectInitializedEvent from Products.CMFCore.WorkflowCore import WorkflowException from Products.CMFPlone.utils import _createObjectByType def create_analysis(context, service, ke...
# -*- coding: utf-8 -*- import sys import os import re import glob import datetime import xml.etree.ElementTree as ET class XMLParser(object): suppressed_output = False default_output = u'parsed.xml' # TODO: implement this, but not possible with ElementTree... is_output_beautified = False def __...
from collections import OrderedDict from rest_framework import viewsets, mixins, permissions, response from rest_framework.authtoken.models import Token from rest_framework.settings import api_settings as rest_settings from rest_framework_jwt.settings import api_settings as jwt_settings from rest_framework_jwt.authent...
# stolen from http://code.activestate.com/recipes/577504/ with some minor changes # for pep8 compatibility from __future__ import print_function from sys import getsizeof, stderr from itertools import chain from collections import deque try: from reprlib import repr except ImportError: pass def total_size(o,...
from flask import Flask, render_template, Response,send_file, request, session, redirect, url_for import camera import flask_httpauth import config import os import io import threading import time import hashlib import logging import datetime import ssl import cloud app = Flask(__name__) conf = config.Configuration() ...
import sys sys.path.append('..') from common.core import * from common.gfxutil import * from common.audio import * from common.mixer import * from common.note import * from common.wavegen import * from common.wavesrc import * from common.writer import * from kivy.core.window import Window from kivy.clock i...
"""The tests for Device tracker device conditions.""" import pytest import homeassistant.components.automation as automation from homeassistant.components.device_tracker import DOMAIN from homeassistant.const import STATE_HOME, STATE_NOT_HOME from homeassistant.helpers import device_registry from homeassistant.setup i...
#!/usr/bin/env python2 # # Copyright (c) 2006,2007 Matt Gerassimoff # # This file is part of g2ools. # # g2ools 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 2 of the License, or # (at your op...
# Copyright 2017 Google Inc. # # 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 required by applicable law or agreed to in writing, ...
# -*- coding: UTF-8 -*- # Copyright (C) 2005-2010 J. David Ibáñez <jdavid.ibp@gmail.com> # Copyright (C) 2006-2007 Nicolas Deram <nderam@gmail.com> # Copyright (C) 2010 Alexis Huet <alexis@itaapy.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
"""This is the receiver for rolling windows analysis model.""" import pandas as pd from enum import Enum from typing import NamedTuple, Optional, List from lexos.receivers.base_receiver import BaseReceiver from lexos.managers.utility import load_file_manager class RWATokenType(Enum): """This type specify what ki...
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2016,2017 Contributor # # 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 #...
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo 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 v...
#coding=utf-8 """ @author: evilXu @file: mod.py @time: 2018/2/28 16:59 @description: """ from rqalpha.interface import AbstractMod from rqalpha.utils.logger import system_log,user_system_log import pandas as pd from rqalpha.api import * class UtilsMod(AbstractMod): def __init__(self): self._inject_api()...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os im...
# http://www.pythonchallenge.com/pc/return/mozart.html __author__ = 'chihchieh.sun' from PIL import Image import urllib.request from io import BytesIO def getImg(url): # User Name & Password password_mgr = urllib.request.HTTPPasswordMgrWithDefaultRealm() top_level_url = 'http://www.pythonchall...
import sure from mock import MagicMock from django.core.management import call_command from django.test import TestCase from ..management.commands import create_images class CreateImagesCase(TestCase): """Create images case""" def setUp(self): self._mock_connect_to_node() self._mock_logger() ...
# -*- coding: utf-8 -*- """ This module exposes everything needed to generate a standard django form class from a formidable object. Given a formidable object, you can use :func:`get_dynamic_form_class` to get its corresponding django form class. """ from __future__ import unicode_literals from collections import Or...
# Copyright 2018 The GraphNets Authors. All Rights Reserved. # # 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 required by applicabl...
#!/usr/bin/env python """ waveforms2hdf5.py loops over the list of waveforms defined in this script and dumps out an hdf5 file for the plus polarisation. The idea is to then compute the Shannon entropy of the waveforms using Matlab's wentropy.m function. """ import h5py import numpy as np import pmns_utils wfs='/Use...
import random from roboronya.plugins.plugin import Plugin class Cholificator(Plugin): description = 'Roboronya will use her *Automated Cholification Algorithm* (Patent Pending) to translate your text to a more sophisticated language.' name = 'cholify' @Plugin.requires_args def run(roboronya, conv, cm...
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
""" Unit tests for the stem.version.Version parsing and class. """ import unittest import stem.util.system import stem.version from stem.version import Version try: # added in python 3.3 from unittest.mock import patch except ImportError: from mock import patch TOR_VERSION_OUTPUT = """Mar 22 23:09:37.088 [no...
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Rasta RST Editor 2010 - Gökmen Göksel <gokmeng:gmail.com> ''' # This program 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 2 of the License,...
from django import template from django.template.base import FilterExpression, Parser, Token from ..siteblocksapp import SiteBlocks register = template.Library() # Utility methods are implemented in SiteBlocks class siteblocks = SiteBlocks() @register.tag def siteblock(parser: Parser, token: Token): """Two not...
#!/usr/bin/env python3 #Copyright 20015 Sebastian Hagen # This file is part of taf. # taf is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation # # taf is distributed in the hope that it will be useful, # ...
#!/usr/bin/python """ A Service to load data products into PostgreSQL and Geoserver """ __author__ = 'abird' from pyon.util.breakpoint import breakpoint from pyon.ion.resource import LCS, LCE, PRED from pyon.util.file_sys import FileSystem, FS import psycopg2 import requests import os from pyon.public import CFG from...
# coding: utf-8 import os import time import libmc import slow_memcached_server import subprocess def memcached_server_ctl(cmd, port): ctl_path = os.path.join( os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__) ))), 'misc', 'memcached_server' ) ...
import unittest from pythoncard.security import MessageDigest from pythoncard.security.key import _binaryToarray class testMessageDigest(unittest.TestCase): def testEmptySHA1(self): md = MessageDigest.getInstance(MessageDigest.ALG_SHA, False) self.assertEqual(MessageDigest.ALG_SHA, md.getAlgorithm...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-10-23 09:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ABC', '0004_auto_20171023_0924'), ] operations = [ migrations.AddField( ...
# Copyright 2015-2016 Hewlett Packard Enterprise Development Company, LP # # All Rights Reserved. # # 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/li...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Takes care of sharding the python-drive tests in multiple devices.""" import copy import logging import multiprocessing from pylib.base import shard...
# -*- encoding: utf-8 -*- import pygments from pygments.formatters import HtmlFormatter from pygmentizr import app STYLE_OPTIONS = [ 'Use CSS classes', 'Apply inline CSS styles', 'For Metacom', ] def metacom_code(hilite_str): """ Apply special styling for rendering code on Metacom. """ ...
#!/usr/bin/env python # -*- coding:utf-8 -*- from django.test import TestCase ''' from pdfminer.pdfpage import PDFPage from pdfminer.layout import LAParams from pdfminer.pdfinterp import PDFResourceManager,PDFPageInterpreter from pdfminer.converter import TextConverter from cStringIO import StringIO # Create your test...
""" Tools for calculate hours/periods of a Truck's driver Actually only valable in France """ from datetime import timedelta from dateutil import rrule import pytz # GMT = pytz.timezone('UTC') # fr = pytz.timezone('Europe/Paris') ENDNIGHT = 6 STARTNIGHT = 21 class DriverDaysDates(object): """ """ def _...
#!/usr/bin/env python from . import _import from ..node import Node class VariableDeclarator(Node): def __init__(self, kwargs={}): if kwargs.get(u'id', ''): super(VariableDeclarator, self).__init__(kwargs) locs = _import() # VariableDeclaratorId self._id =...
# Copyright 2013 Cloudbase Solutions Srl # All Rights Reserved. # # 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 required by applicabl...
#------------------------------------------------------------------------------- # Name: MFRC522.py # Purpose: Mifare MFRC-522 module 13.56 MHz card/tag reader # # Author: Mario Gomez, Jakub Dvorak (aditional changes for this project) # More: http://fuenteabierta.teubi.co/2013/07/utilizando-el-lector-nf...
""" Django settings for wanawana project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) i...
# Generated by Django 2.2.20 on 2021-05-03 18:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('enterprise', '0129_enterprisecatalogquery_uuid_unique'), ] operations = [ migrations.AlterField( model_name='enterprisecustomer...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from logging import ERROR, getLogger from pipes import quote from string import ascii_lowercase, digits from passlib.hash import bcrypt, md5_crypt, sha256_crypt, sha512_crypt from bundlewrap.exceptions import BundleError from bundlewrap.items import BUI...
from lxml import etree from pcs.common import report_codes from pcs.lib import reports, validate from pcs.lib.cib.nvpair import ( append_new_meta_attributes, arrange_first_meta_attributes, META_ATTRIBUTES_TAG, ) from pcs.lib.cib.resource.primitive import TAG as TAG_PRIMITIVE from pcs.lib.cib.tools import E...
'''OpenGL extension EXT.cmyka This module customises the behaviour of the OpenGL.raw.GL.EXT.cmyka to provide a more Python-friendly API Overview (from the spec) This extension provides a simple method for OpenGL to read and store images whose pixels have CMYK or CMYKA formats. The algorithms used to convert t...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # VoR-CV # The MIT License # # Copyright (c) 2010,2015 Jeremie DECOCK (http://www.jdhp.org) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software ...
# project/user/forms.py from flask_wtf import Form from wtforms import TextField, PasswordField from wtforms.validators import DataRequired, Email, Length, EqualTo from project.models import User class LoginForm(Form): email = TextField('email', validators=[DataRequired()]) password = PasswordField('passwo...
from setuptools import setup setup( name='simplebus', version='1.0.1', packages=[ 'simplebus', 'simplebus.transports'], url='https://github.com/viniciuschiele/simplebus', license='Apache 2.0', author='Vinicius Chiele', author_email='vinicius.chiele@gmail.com', descriptio...
# -*- coding: utf-8 -*- from datetime import date from ._provider import Provider class Yahoo(Provider): """ Real-time service with no known limits offers only latest exchange rates. Implicit base currency is USD. """ BASE_URL = "http://query.yahooapis.com/v1/public/yql" PREPARED_YQL = "SELECT...
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pyasn1.sf.net/license.html # # ASN.1 named integers # from pyasn1 import error __all__ = ['NamedValues'] class NamedValues(object): def __init__(self, *namedValues): self.nameToValIdx...
#!/usr/bin/env python # # Copyright (c) 2015 Intel Corporation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of works must retain the original copyright notice, this # list of conditions and t...
## # Copyright 2012-2019 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
# -*- coding: utf-8 -*- # # conan documentation build configuration file, created by # sphinx-quickstart on Thu May 21 10:27:36 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...