Exemple #1
0
# web
from forest._importable import LazyImport


## url
from .url import *

## scrape
from .scrape import *

## api
from .api import *

## email
smtplib = LazyImport("import smtplib", "LIBRARY smtplib — SMTP protocol client, derived from 'import smtplib', part of The Python Standard Library")


## browser
from .browser import *

## frameworks
from .frameworks import *
Exemple #2
0
# api
from forest._importable import LazyImport

newspaper = LazyImport(
    "import newspaper",
    "PACKAGE newspaper — News, full-text, and article metadata extraction in Python 3, derived from 'import newspaper', from https://github.com/codelucas/newspaper, Documentation: https://newspaper.readthedocs.io/en/latest/"
)
Article = LazyImport(
    "from newspaper import Article",
    "CLASS newspaper.Article — Article scraping and curation, derived from 'from newspaper import Article', from https://github.com/codelucas/newspaper, Documentation: https://newspaper.readthedocs.io/en/latest/user_guide/quickstart.html#news-articles"
)
fulltext = LazyImport(
    "fromn newspaper import fulltext",
    "FUNCTION newspaper.fulltext — Extract full text from an article, derived from 'from newspaper import fulltext', from https://github.com/codelucas/newspaper, Documentation: https://newspaper.readthedocs.io/en/latest/"
)
wikipedia = LazyImport(
    "import wikipedia",
    "PACKAGE wikipedia — A Pythonic wrapper for the Wikipedia API, derived from 'import wikipedia', from https://github.com/goldsmith/Wikipedia, Documentation: https://wikipedia.readthedocs.io/en/latest/"
)
Exemple #3
0
# youtube
from forest._importable import LazyImport

youtube_dl = LazyImport(
    "import youtube_dl",
    "PACKAGE youtube_dl — Command-line program to download videos from YouTube.com and other video sites, derived from 'import youtube_dl', from https://github.com/ytdl-org/youtube-dl"
)
YouTube = LazyImport(
    "from pytube import YouTube",
    "CLASS pytube.YouTube(url) — A lightweight YouTube wrapper for downloading YouTube videos, derived from 'from pytube import YouTube', from https://github.com/nficano/pytube, Documentation: https://python-pytube.readthedocs.io/en/latest/api.html#youtube-object"
)
pafy = LazyImport(
    "import pafy",
    "PACKAGE pafy — Python library to download YouTube content and retrieve metadata, derived from 'import pafy', from https://github.com/mps-youtube/pafy, Documentation: https://pythonhosted.org/pafy/"
)
Exemple #4
0
## numalg
from forest._importable import LazyImport

numpy = LazyImport(
    "import numpy",
    "PACKAGE numpy — The fundamental package for scientific computing with Python, derived from 'import numpy', from https://github.com/numpy/numpy, Documentation: https://numpy.org/doc"
)
la = LazyImport(
    "import numpy.linalg as la",
    "PACKAGE la derived from numpy.linalg — Linear Algebra for Python and primarily NumPy, derived from 'import numpy.linalg as la', from https://github.com/numpy/numpy, Documentation: https://numpy.org/doc/1.18/reference/routines.linalg.html"
)
np = LazyImport(
    "import np",
    "PACKAGE np — np-altered NumPy for more functionality, derived from 'import np', from https://github.com/k7hoven/np"
)
Exemple #5
0
# sql
from forest._importable import LazyImport

sqlite3 = LazyImport(
    "import sqlite3",
    "PACKAGE sqlite3 — An Embeddable SQL Database Engine, derived from 'import sqlite3', from http://www.sqlite.org/, Documentation: https://www.sqlite.org/docs.html"
)
mysql = LazyImport(
    "import sqlite3 as mysql",
    "PACKAGE mysql derived from sqlite3 — An Embeddable SQL Database Engine, derived from 'import sqlite3 as mysql', from http://www.sqlite.org/, Documentation: https://www.sqlite.org/docs.html"
)
sql = LazyImport(
    "import sqlite3 as sql",
    "PACKAGE sql derived from sqlite3 — An Embeddable SQL Database Engine, derived from 'import sqlite3 as sql', from http://www.sqlite.org/, Documentation: https://www.sqlite.org/docs.html"
)
Exemple #6
0
# physics
from forest._importable import LazyImport

skspatial = LazyImport("import skspatial")
phyton = LazyImport("import phyton")
constants = LazyImport("import phyton.constants")
Exemple #7
0
## Kivy
from forest._importable import LazyImport

kivy = LazyImport("import kivy", "PACKAGE kivy — Open source UI framework written in Python, derived from 'import kivy', from https://github.com/kivy/kivy, Documentation: https://kivy.org/doc/stable/")
kivyApp = LazyImport("from kivy.app import App as kivyApp", "CLASS kivyApp derived from kivy.app.App — Base for creating Kivy applications, derived from 'from kivy.app import App as kivyApp', from https://github.com/kivy/kivy, Documentation: https://kivy.org/doc/stable/api-kivy.app.html")
kivyuilds = LazyImport("import kivy.uix as kivyuilds", "SUBPACKAGE kivyuilds derived from kivy.uix — Classes for creating and managing Widgets, derived from 'import kivy.uix as kivyuilds', from https://github.com/kivy/kivy, Documentation: https://kivy.org/doc/stable/api-kivy.uix.html")
Exemple #8
0
## PyQT
from forest._importable import LazyImport

qt = LazyImport(
    "import PyQt5 as qt",
    "PACKAGE qt derived from PyQt5 — Module that uses Qt from C++, derived from 'import PyQt5 as qt', from https://github.com/baoboa/pyqt5, Documentation: "
)
Qt = LazyImport(
    "import PyQt5 as Qt",
    "PACKAGE Qt derived from PyQt5 — Module that uses Qt from C++, derived from 'import PyQt5 as Qt', from https://github.com/baoboa/pyqt5, Documentation: "
)
PyQt = LazyImport(
    "import PyQt5 as PyQt",
    "PACKAGE PyQt derived from PyQt5 — Module that uses Qt from C++, derived from 'import PyQt5 as PyQt', from https://github.com/baoboa/pyqt5, Documentation: "
)
pyqt = LazyImport(
    "import PyQt5 as pyqt",
    "PACKAGE pyqt derived from PyQt5 — Module that uses Qt from C++, derived from 'import PyQt5 as pyqt', from https://github.com/baoboa/pyqt5, Documentation: "
)
PyQt4 = LazyImport(
    "import PyQt5 as PyQt4",
    "PACKAGE PyQt4 derived from PyQt5 — Module that uses Qt from C++, derived from 'import PyQt5 as PyQt5', from https://github.com/baoboa/pyqt5, Documentation: "
)
PyQt5 = LazyImport(
    "import PyQt5",
    "PACKAGE PyQt5 — Module that uses Qt from C++, derived from 'import PyQt5', from https://github.com/baoboa/pyqt5, Documentation: "
)
Exemple #9
0
## stats
from forest._importable import LazyImport

statistics = LazyImport(
    "import statistics",
    "LIBRARY: statistics — Mathematical statistics functions, derived from 'import statistics', part of The Python Standard Library"
)

sm = LazyImport(
    "import statsmodels.api as sm",
    "PACKAGE sm derived from statsmodels.api — statistical modeling and econometrics in Python, derived from 'import statsmodels.api as sm', from https://github.com/statsmodels/statsmodels, Documentation: https://www.statsmodels.org/stable/"
)
smf = LazyImport(
    "import statsmodels.formula.api as smf",
    "SUBPACKAGE smf derived from statsmodels.formula.api — statistical modeling and econometrics in Python, derived from 'import statsmodels.formulas.api as sm', from https://github.com/statsmodels/statsmodels, Documentation: https://www.statsmodels.org/stable/"
)
Exemple #10
0
# audio
from forest._importable import LazyImport

playsound = LazyImport(
    'from playsound import playsound',
    "FUNCTION playsound.playsound('/path.to/a/sound/file/you/want/to/play.mp3 | URL', block=True) — Function to playing sound file with filetype WAVE and MP3, derived from 'from playsound import playsound', from https://github.com/TaylorSMarks/playsound"
)

sa = LazyImport(
    'import simpleaudio as sa',
    "PACKAGE sa derived from simpleaudio — A cross-platform dependency-free asynchronous simple audio playback Python extension, derived from 'import simpleaudio as sa', from https://github.com/hamiltron/py-simple-audio, Documentation: https://simpleaudio.readthedocs.io/en/latest/"
)
simpleaudio = LazyImport(
    'import simpleaudio',
    "PACKAGE simpleaudio — A cross-platform dependency-free asynchronous simple audio playback Python extension, derived from 'import simpleaudio', from https://github.com/hamiltron/py-simple-audio, Documentation: https://simpleaudio.readthedocs.io/en/latest/"
)
fc = LazyImport(
    "from simpleaudio import functionchecks as fc",
    "SUBPACKAGE fc derived from simpleaudio.functionchecks — Quick Function Check for simpleaudio package, derived from 'import simpleaudio.functionchecks as fc', from https://github.com/hamiltron/py-simple-audio, Documentation: https://simpleaudio.readthedocs.io/en/latest/"
)

winsound = LazyImport(
    'import winsound',
    "LIBRARY winsound — Sound-playing interface for Windows, derived from 'import winsound', from The Python Standard Library"
)
beep = LazyImport('from winsound import Beep as beep')

sd = LazyImport(
    'import sounddevice as sd',
    "PACKAGE sd derived from sounddevice — Play and Record Sound with Python, derived from 'import sounddevice as sd', from https://github.com/spatialaudio/python-sounddevice, Documentation: https://python-sounddevice.readthedocs.io/en/0.3.15/"
)
Exemple #11
0
# matlab
from forest._importable import LazyImport

matplotlib = LazyImport(
    "import matplotlib",
    "PACKAGE matplotlib — A comprehensive library for creating static, animated, and interactive visualizations in Python, derived from 'import matplotlib', from https://github.com/matplotlib/matplotlib, Documentation: https://matplotlib.org/contents.html"
)
mpl = LazyImport(
    "import matplotlib as mpl",
    "PACKAGE mpl derived from matplotlib — A comprehensive library for creating static, animated, and interactive visualizations in Python, derived from 'import matplotlib as mpl', from https://github.com/matplotlib/matplotlib, Documentation: https://matplotlib.org/contents.html"
)
plt = LazyImport(
    "import matplotlib.pyplot as plt",
    "SUBPACKAGE plt derived from matplotlib.pyplot — A comprehensive library for creating static, animated, and interactive visualizations in Python, derived from 'import matplotlib.pyplot as plt', from https://github.com/matplotlib/matplotlib, Documentation: https://matplotlib.org/api/index.html#the-pyplot-api"
)
pyplot = LazyImport(
    "from matplotlib import pyplot",
    "SUBPACKAGE matplotlib.pyplot — A comprehensive library for creating static, animated, and interactive visualizations in Python, derived from 'from matplotlib import pyplot', from https://github.com/matplotlib/matplotlib, Documentation: https://matplotlib.org/api/index.html#the-pyplot-api"
)
pylab = LazyImport(
    "import pylab",
    "PACKAGE pylab - A procedural interface to the Matplotlib object-oriented plotting library, derived from 'import pylab', from https://github.com/matplotlib/matplotlib, Documentation: https://scipy.github.io/old-wiki/pages/PyLab"
)
pl = LazyImport(
    "import pylab as pl",
    "PACKAGE pylab - A procedural interface to the Matplotlib object-oriented plotting library, derived from 'import pylab as pl', from https://github.com/matplotlib/matplotlib, Documentation: https://scipy.github.io/old-wiki/pages/PyLab"
)

matkinter = LazyImport(
    "import matkinter",
    "MODULE matkinter — A library for tkinter data visualizations, derived from 'import matkinter', self-created"
Exemple #12
0
# temporal
from forest._importable import LazyImport

## calendar
cal = LazyImport(
    "import calendar as cal",
    "LIBRARY cal derived from calendar — General calendar-related functions, derived from 'import calendar as cal', part of The Python Standard Library"
)
calendar = LazyImport(
    "import calendar",
    "LIBRARY calendar — General calendar-related functions, derived from 'import calendar', part of The Python Standard Library"
)

## date and time
dt = LazyImport(
    "import datetime as dt",
    "LIBRARY dt derived from datetime — Basic data and time types, derived from 'import datetime as dt', part of The Python Standard Library"
)
datetime = LazyImport(
    "from datetime import datetime",
    "SUBLIBRARY datetime.datetime — Basic data and time types, derived from 'from datetime import datetime', part of The Python Standard Library"
)

time = LazyImport(
    "import time",
    "LIBRARY time — Time access and conversions, derived from 'import time', part of The Python Standard Library"
)

relativedelta = LazyImport(
    "from dateutil.relativedelta import relativedelta",
    "CLASS dateutil.relativedelta.relativedelta — relativedelta instance, derived from 'from dateutil.relativedelta import relativedelta', from https://github.com/dateutil/dateutil, Documentation: https://dateutil.readthedocs.io/en/stable/relativedelta.html"
Exemple #13
0
# frameworks
from forest._importable import LazyImport

fastapi = LazyImport("import fastapi")
FastAPI = LazyImport("from fastapi import FastAPI")
pydantic = LazyImport("import pydantic")
tornado = LazyImport("import tornado")
sanic = LazyImport("import sanic")
Sanic = LazyImport("from sanic import Sanic")
Exemple #14
0
# scrape
from forest._importable import LazyImport

requests = LazyImport(
    "import requests",
    "PACKAGE requests — A simple, yet elegant HTTP library, derived from 'import requests', from https://github.com/psf/requests, Documentation: https://requests.readthedocs.io/en/master/"
)
BeautifulSoup = LazyImport(
    "from bs4 import BeautifulSoup",
    "CLASS bs4.BeautifulSoup — HTML/XML Formatter on Python, derived from 'from bs4 import BeautifulSoup', from https://www.crummy.com/software/BeautifulSoup/, Documentation: https://www.crummy.com/software/BeautifulSoup/bs4/doc/"
)
scrapy = LazyImport(
    "import scrapy",
    "PACKAGE scrapy — A fast high-level web crawling & scraping framework for Python, derived from 'import scrapy', from https://github.com/scrapy/scrapy, Documentation: https://docs.scrapy.org/en/latest/index.html"
)
Exemple #15
0
# browser
from forest._importable import LazyImport

webbrowser = LazyImport(
    "import webbrowser",
    "LIBRARY webbrowser — Convenient Web-browser controller, derived from 'import webbrowser', from The Python Standard Library"
)
wb = LazyImport(
    "import webbrowser as wb",
    "LIBRARY wb derived from webbrowser — Convenient Web-browser controller, derived from 'import webbrowser as wb', from The Python Standard Library"
)
openweb = LazyImport(
    "from webbrowser import open as openweb",
    "FUNCTION openweb derived from webbrowser.open — Display url using the new default browser, derived from 'from webbrowser import open as openweb', from The Python Standard Library"
)
Exemple #16
0
# gps
from forest._importable import LazyImport


geopy = LazyImport("import geopy", "PACKAGE geopy — Geocoding library for Python, derived from 'import geopy', from https://github.com/geopy/geopy, Documentation: https://geopy.readthedocs.io/")
GoogleV3 = LazyImport("from geopy import GoogleV3", "CLASS geopy.GoogleV3 — Geocoder using the Google Maps v3 API, derived from 'from geopy import GoogleV3', from https://github.com/geopy/geopy, Documentation: https://geopy.readthedocs.io/en/stable/#googlev3")
geodesic = LazyImport("from geopy.distance import geodesic", "CLASS geopy.distance.geodesic — Calculate the geodesic distance between two points, derived from 'from geopy.distance import geodesic', from https://github.com/geopy/geopy, Documentation: https://geopy.readthedocs.io/en/stable/#module-geopy.distance")
geodist = LazyImport("from geopy import distance as geodist", "SUBPACKAGE geodist derived from geopy.distance — Calculating distance between two points, derived from 'import geopy.distance as geodist', from https://github.com/geopy/geopy, Documentation: https://geopy.readthedocs.io/en/stable/#module-geopy.distance")
Exemple #17
0
# search
from forest._importable import LazyImport

google = LazyImport(
    "import googlesearch as google",
    "PACKAGE google derived from googlesearch — The google package, derived from 'import googlesearch as google', from https://github.com/MarioVilas/googlesearch, Documentation: https://python-googlesearch.readthedocs.io/en/latest/"
)
googlesearch = LazyImport(
    "import googlesearch",
    "PACKAGE googlesearch — The google package, derived from 'import googlesearch', from https://github.com/MarioVilas/googlesearch"
)

gsearch = LazyImport("from googlesearch import search as gsearch")
gimages = LazyImport(
    "from googlesearch import search_images as images as gimages")
gnews = LazyImport("from googlesearch import search_news as gnews")
gvideos = LazyImport("from googlesearch import search_videos as gvideos")
gshop = LazyImport("from googlesearch import search_shop as gshop")
gbooks = LazyImport("from googlesearch import search_books as gbooks")
gapps = LazyImport("from googlesearch import search_apps as gapps")
glucky = LazyImport("from googlesearch import lucky as glucky")
ghits = LazyImport("from googlesearch import hits as ghits")
gngd = LazyImport("from googlesearch import ngd as gngd")
Exemple #18
0
## xml
from forest._importable import LazyImport


lxml = LazyImport("import lxml", "PACKAGE lxml — The lxml XML toolkit for Python, derived from 'import lxml', from https://github.com/lxml/lxml, Documentation: https://lxml.de/")
etree = LazyImport("from lxml import etree", "SUBPACKAGE lxml.etree — The ElementTree API, derived from 'from lxml import etree', from https://github.com/lxml/lxml, Documentation: https://lxml.de/")
Exemple #19
0
## human
from forest._importable import LazyImport

pyyaml = LazyImport(
    "import pyyaml",
    "PACKAGE pyyaml — The next generation YAML parser and emitter for Python, derived from 'import pyyaml', from https://github.com/yaml/pyyaml, Documentation: https://pyyaml.org/wiki/PyYAMLDocumentation"
)
yaml = LazyImport(
    "import pyyaml as yaml",
    "PACKAGE yaml derived from pyyaml — The next generation YAML parser and emitter for Python, derived from 'import pyyaml as yaml', from https://github.com/yaml/pyyaml, Documentation: https://pyyaml.org/wiki/PyYAMLDocumentation"
)
Exemple #20
0
# scikit
from forest._importable import LazyImport

sklearn = LazyImport(
    "import sklearn",
    "PACKAGE sklearn — Machine learning in Python, derived from 'import sklearn', from https://github.com/scikit-learn/scikit-learn, Documentation: https://scikit-learn.org/stable/modules/classes.html"
)

train_test_split = LazyImport(
    "from sklearn.model_selection import train_test_split",
    "FUNCTION sklearn.model_selection.train_test_split — Split arrays or matrices into random train and test subsets, derived from 'from sklearn.model_selection import train_test_split', from https://github.com/scikit-learn/scikit-learn, Documentation: https://scikit-learn.org/stable/modules/classes.html"
)
cross_val_score = LazyImport(
    "from sklearn.model_selection import cross_val_score",
    "FUNCTION sklearn.model_selection.cross_val_score — Evaluate a score by cross validation, derived from 'from sklearn.model_selection import cross_val_score', from https://github.com/scikit-learn/scikit-learn, Documentation: https://scikit-learn.org/stable/modules/classes.html"
)
StratifiedKFold = LazyImport(
    "from sklearn.model_selection import StratifiedKFold",
    "CLASS sklearn.model_selection.StratifiedKFold — Stratified K-Folds cross-validator, derived from 'from sklearn.model_selection import StratifiedKFold', from https://github.com/scikit-learn/scikit-learn, Documentation: https://scikit-learn.org/stable/modules/classes.html"
)

LogisticRegression = LazyImport(
    "from sklearn.linear_model import LogisticRegression")

DecisionTreeClassifier = LazyImport(
    "from sklearn.tree import DecisionTreeClassifier")

KNeighborsClassifier = LazyImport(
    "from sklearn.neighbours import KNeighborsClassifier")

LinearDiscriminantAnalysis = LazyImport(
Exemple #21
0
# stem
from forest._importable import LazyImport

## basic math
math = LazyImport(
    "import math",
    "LIBRARY: math — Mathematical functions, derived from 'import math', part of The Python Standard Library"
)

## complex math
cmath = LazyImport(
    "import cmath",
    "LIBRARY: cmath — Mathematical functions for complex numbers, derived from 'import cmath', part of The Python Standard Library"
)

## stats
from .stats import *

## random
from .rand import *

## oop
from .oop import *

## symbolic
from .symbolic import *

## numalg
from .numalg import *

## tensoralg
Exemple #22
0
# plotlylib
from forest._importable import LazyImport

plotly = LazyImport(
    "import plotly",
    "PACKAGE plotly — The interactive open-source browser-based graphing library for Python (includes Plotly Express), derived from 'import plotly', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
py = LazyImport(
    "import plotly as py",
    "PACKAGE py derived from plotly — The interactive open-source browser-based graphing library for Python (includes Plotly Express), derived from 'import plotly as py', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
go = LazyImport(
    "import plotly.graph_objs as go",
    "SUBPACKAGE go derived from plotly.graph_objs — Graph Objects, derived from 'import plotly.graph_objs as go', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
px = LazyImport(
    "import plotly.express as px",
    "SUBPACKAGE px derived from plotly.express — Plotly Express, derived from 'import plotly.express as px', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
pio = LazyImport(
    "import plotly.io as pio",
    "SUBPACKAGE pio derived from plotly.io — File IO for Plotly, derived from 'import plotly.io as pio', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
py1 = LazyImport(
    "import plotly.plotly as py1",
    "SUBPACKAGE py1 derived from plotly.plotly — Plotly inbuilt subpackage, derived from 'import plotly.plotly as py1', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
plottools = LazyImport(
    "from plotly import tools as plottools",
    "SUBPACKAGE plottools derived from plotly.tools — Tools for plotly, derived from 'import plotly.tools as plottools', from https://github.com/plotly/plotly.py, Documentation: https://plotly.com/python/"
)
Exemple #23
0
# stdlib
from forest._importable import LazyImport

## system
from .systempy import *

## shell
from .shell import *

## debugging
pdb = LazyImport(
    "import pdb",
    "LIBRARY pdb — The Python Debugger, derived from 'import pdb', from The Python Standard Library"
)

## windows
wincl = LazyImport(
    'import win32com.client as wincl',
    "PACKAGE wincl derived from win32com.client — Python for Windows (pywin32) Extensions, derived from 'import win32com.client as wincl', from https://github.com/mhammond/pywin32, Documentation: http://timgolden.me.uk/pywin32-docs/contents.html"
)

## import
importlib = LazyImport(
    "import importlib",
    "LIBRARY: importlib — implementation of import, derived from 'import importlib', part of The Python Standard Library"
)
inspect = LazyImport(
    "import inspect",
    "LIBRARY: inspect — Inspect live objects, derived from 'import inspect', part of The Python Standard Library"
)
Exemple #24
0
# url
from forest._importable import LazyImport

urllib = LazyImport(
    "import urllib",
    "LIBRARY urllib — URL handling modules, derived from 'import urllib', from The Python Standard Library"
)
request = LazyImport(
    "from urllib import request",
    "LIBRARY urllib.request — Extensive library for opening URLs, derived from 'from urllib import request', from The Python Standard Library"
)
urllib2 = LazyImport(
    "import urllib.request as urllib2",
    "LIBRARY urllib2 derived from urllib.request — Extensive library for opening URLs, derived from 'import urllib.request as urllib2', from The Python Standard Library"
)
urlopen = LazyImport(
    "from urllib.request import urlopen",
    "FUNCTION urllib.request.urlopen(url...) — Opens the URL url which can be either a string or a Request object, derived from 'from urllib.request import urlopen', from The Python Standard Library"
)
Exemple #25
0
## tensoralg
from forest._importable import LazyImport

theano = LazyImport(
    "import theano",
    "PACKAGE theano — a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently, derived from 'import theano', from https://github.com/Theano/Theano"
)
tensor = LazyImport("from theano import tensor")
Exemple #26
0
# dataviz
from forest._importable import LazyImport

# matlab
from .matlab import *

# misc
bokeh = LazyImport(
    "import bokeh",
    "PACKAGE bokeh — Interactive Data Visualization in the browser, from Python, derived from 'import bokeh', from https://github.com/bokeh/bokeh, Documentation: https://docs.bokeh.org/en/latest/"
)

altair = LazyImport(
    "import altair",
    "PACKAGE altair — Declarative statistical visualization library for Python, derived from 'import altair', from https://github.com/altair-viz/altair, Documentation: https://altair-viz.github.io/"
)
alt = LazyImport(
    "import altair as alt",
    "PACKAGE alt derived from altair — Declarative statistical visualization library for Python, derived from 'import altair as alt', from https://github.com/altair-viz/altair, Documentation: https://altair-viz.github.io/"
)

pydot = LazyImport(
    "import pydot",
    "PACKAGE pydot — Python interface to Graphviz's Dot language, derived from 'import pydot', from https://github.com/pydot/pydot"
)
pydot_ng = LazyImport(
    "import pydot_ng",
    "PACKAGE pydot_ng — Python interface to Graphviz's Dot language, derived from 'import pydot_ng', from https://github.com/pydot/pydot-ng"
)

# plotlylib
Exemple #27
0
# astro
from forest._importable import LazyImport

astropy = LazyImport("import astropy")

sunpy = LazyImport("import sunpy")

heliopy = LazyImport("import heliopy")
ParkerSpiral = LazyImport("from heliopy import ParkerSpiral")

galpy = LazyImport("import galpy")
MiyamotoNagaiPotential = LazyImport(
    "from galpy.potential import MiyamotoNagaiPotential")
NFWPotential = LazyImport("from galpy.potential import NFWPotential")
HernquistPotential = LazyImport(
    "from galpy.potential import HernquistPotential")
MWPotential = LazyImport("from galpy.potential import MWPotential")
MWPotential2014 = LazyImport("from galpy.potential import MWPotential2014")
Orbit = LazyImport("from galpy.orbit import Orbit")
Exemple #28
0
# ggl
from forest._importable import LazyImport

## search
from .search import *

## misc
convert = LazyImport(
    "from google_currency import convert",
    "FUNCTION google_currency.convert(original_currency_type, new_currency_type, original_amount) — simple function to convert the currency of one country to other, derived from 'from google_currency import convert', from https://github.com/om06/google-currency"
)
Translator = LazyImport(
    "from googletrans import Translator",
    "CLASS googletrans.Translator — class to imitate Google Translate, derived from 'from googletrans import Translator', from https://github.com/ssut/py-googletrans, Documentation: https://py-googletrans.readthedocs.io/en/latest/"
)

## gps
from .gps import *

# youtube
from .youtube import *
Exemple #29
0
## excel
from forest._importable import LazyImport


xlrd = LazyImport("import xlrd", "PACKAGE xlrd — retrieving information from a spreadsheet, derived from 'import xlrd', from https://github.com/python-excel/xlrd, Documentation: https://xlrd.readthedocs.io/en/latest/?badge=latest")
open_workbook = LazyImport("from xlrd import open_workbook", "FUNCTION xlrd.open_workbook — open a spreadsheet file for data extraction, derived from 'from xlrd import open_workbook', from https://github.com/python-excel/xlrd, Documentation: https://xlrd.readthedocs.io/en/latest/api.html")
xlwt = LazyImport("import xlwt", "PACKAGE xlwt — library for writing data and formatting information to older Excel files, derived from 'import xlwt', from https://github.com/python-excel/xlwt, Documentation: https://xlwt.readthedocs.io/en/latest/")
easyxf = LazyImport("from xlwt import easyxf", "FUNCTION xlwt.easyxf — a function to create and configure XFStyle objects, derived from 'from xlwt import easyxf', from https://github.com/python-excel/xlwt, Documentation: https://xlwt.readthedocs.io/en/latest/api.html")
openpyxl = LazyImport("import openpyxl", "PACKAGE openpyxl — library to read/write Excel 2010 xlsx,xlsm files, derived from 'import openpyxl', from https://bitbucket.org/openpyxl/openpyxl/src/default/, Documentation: https://openpyxl.readthedocs.io/en/stable/")
Workbook = LazyImport("from openpyxl import Workbook", "CLASS openpyxl.Workbook — a class that represents a workbook, derived from 'from openpyxl import Workbook', from https://bitbucket.org/openpyxl/openpyxl/src/default/, Documentation: https://openpyxl.readthedocs.io/en/stable/api/openpyxl.workbook.workbook.html#openpyxl.workbook.workbook.Workbook")
Worksheet = LazyImport("from openpyxl.worksheet.worksheet import Worksheet", "CLASS openpyxl.worksheet.worksheet.Worksheet — a class that represents a sheet in a workbook, derived from 'from openpyxl.worksheet.worksheet import Worksheet', from https://bitbucket.org/openpyxl/openpyxl/src/default/, Documentation: https://openpyxl.readthedocs.io/en/stable/api/openpyxl.worksheet.worksheet.html#openpyxl.worksheet.worksheet.Worksheet")
load_workbook = LazyImport("from openpyxl import load_workbook")
Exemple #30
0
# loc
from forest._importable import LazyImport

glob = LazyImport(
    "import glob",
    "LIBRARY: glob — Unix style pathname pattern expansion, derived from 'import glob', part of The Python Standard Library"
)
Path = LazyImport(
    "from pathlib import Path",
    "CLASS: pathlib.Path — represents concrete paths of the system’s path flavour, derived from 'from pathlib import Path', part of The Python Standard Library"
)
pathlib = LazyImport(
    "import pathlib",
    "LIBRARY: pathlib — Object-oriented filesystem paths, derived from 'import pathlib', part of The Python Standard Library"
)