Search is not available for this dataset
repo_id stringlengths 12 110 | file_path stringlengths 24 164 | content stringlengths 3 89.3M | __index_level_0__ int64 0 0 |
|---|---|---|---|
public_repos | public_repos/langserve-replit-template/replit.nix | { pkgs }: {
deps = [
];
} | 0 |
public_repos | public_repos/langserve-replit-template/pyproject.toml | [tool.poetry]
name = "langchain-replit-template"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
sse-starlette = "^1.6.5"
tomli-w = "^1.0.0"
uvicorn = "^0.23.2"
fastapi = ">=0.104.0"
langserve = ">=0.0.16"
pirate_speak = {pat... | 0 |
public_repos | public_repos/langserve-replit-template/.replit | modules = ["python-3.10:v18-20230807-322e88b"]
hidden = [".pythonlibs"]
run = "langchain serve --host 0.0.0.0"
onBoot = "pip install -U langchain-cli && poetry install"
entrypoint = "main.py"
[nix]
channel = "stable-23_05"
[unitTest]
language = "python3"
[deployment]
run = ["sh", "-c", "langserve serve"]
deployment... | 0 |
public_repos | public_repos/langserve-replit-template/README.md | # 🦜🔗 LangServe Replit Template
[](https://replit.com/new/github/langchain-ai/langserve-replit-template)
This template shows how to deploy a [LangChain Expression Language Runnable](https://python.langchain.com/docs/expression_l... | 0 |
public_repos/langserve-replit-template | public_repos/langserve-replit-template/app/server.py | from fastapi import FastAPI
from langserve import add_routes
from pirate_speak.chain import chain as pirate_speak_chain
app = FastAPI()
# Edit this to add the chain you want to add
add_routes(app, pirate_speak_chain, path="/pirate-speak")
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0... | 0 |
public_repos/langserve-replit-template/packages | public_repos/langserve-replit-template/packages/pirate-speak/poetry.lock | # This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand.
[[package]]
name = "aiohttp"
version = "3.8.6"
description = "Async http client/server framework (asyncio)"
optional = false
python-versions = ">=3.6"
files = [
{file = "aiohttp-3.8.6-cp310-cp310-macosx_10_9_universal2.whl",... | 0 |
public_repos/langserve-replit-template/packages | public_repos/langserve-replit-template/packages/pirate-speak/pyproject.toml | [tool.poetry]
name = "pirate-speak"
version = "0.0.1"
description = ""
authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.325"
openai = "^0.28.1"
[tool.poetry.group.dev.dependencies]
langchain-cli = ">=0.0.15"
fastapi = "^0.104.0"
sse-starlette = "^1.6.5"
[tool.la... | 0 |
public_repos/langserve-replit-template/packages | public_repos/langserve-replit-template/packages/pirate-speak/README.md |
# pirate-speak
This template converts user input into pirate speak.
## Environment Setup
Set the `OPENAI_API_KEY` environment variable to access the OpenAI models.
## Usage
To use this package, you should first have the LangChain CLI installed:
```shell
pip install -U langchain-cli
```
To create a new LangChain... | 0 |
public_repos/langserve-replit-template/packages | public_repos/langserve-replit-template/packages/pirate-speak/LICENSE | MIT License
Copyright (c) 2023 LangChain, Inc.
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 without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | 0 |
public_repos/langserve-replit-template/packages/pirate-speak | public_repos/langserve-replit-template/packages/pirate-speak/pirate_speak/chain.py | from langchain.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
_prompt = ChatPromptTemplate.from_messages(
[
(
"system",
"Translate user input into pirate speak",
),
("human", "{text}"),
]
)
_model = ChatOpenAI()
# if you update th... | 0 |
public_repos | public_repos/epydoc/Makefile | ############################################################
## epydoc Makefile
##
## Edward Loper
############################################################
##//////////////////////////////////////////////////////////////////////
## Configuration variables
##///////////////////////////////////////////////////////... | 0 |
public_repos | public_repos/epydoc/README.md | epydoc
======
Automatic API Documentation Generation for Python
| 0 |
public_repos/epydoc | public_repos/epydoc/man/epydocgui.1 | .\"
.\" Epydoc graphical interface man page.
.\" $Id: epydocgui.1 405 2002-11-07 10:52:37Z edloper $
.\"
.TH EPYDOCGUI 1
.SH NAME
epydocgui \- graphical interface to epydoc
.\" ================== SYNOPSIS ====================
.SH SYNOPSIS
.PP
.B epydocgui
.RI [ project.prj " | " modules ...]
.PP
.B epydoc \-h
.PP
.B ep... | 0 |
public_repos/epydoc | public_repos/epydoc/man/epydoc.1 | .\"
.\" Epydoc command line interface man page.
.\" $Id: epydoc.1 1698 2008-01-31 01:09:38Z edloper $
.\"
.TH EPYDOC 1
.SH NAME
epydoc \- generate API documentation from Python docstrings
.\" ================== SYNOPSIS ====================
.SH SYNOPSIS
.HP 7
.B epydoc
.RB [ action ]
.RB [ options ]
.IB names...
.\" ==... | 0 |
public_repos/epydoc | public_repos/epydoc/src/MANIFEST.in | include LICENSE.txt
include README.txt
recursive-include doc *.html *.css *.png
recursive-include man *.1
include scripts/*
include Makefile
| 0 |
public_repos/epydoc | public_repos/epydoc/src/LICENSE.txt | epydoc is released under the following license:
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and any associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
m... | 0 |
public_repos/epydoc | public_repos/epydoc/src/README.txt | ###############################################################
### Epydoc ###
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###
### Copyright (C) Edward Loper ###
### Author: Edward Loper <edloper@gradient.cis.upenn.edu> ###
... | 0 |
public_repos/epydoc | public_repos/epydoc/src/setup.py | #! /usr/bin/env python
#
# Edward Loper's API Documentation Generation Tool
#
# Created [05/27/01 09:04 PM]
# Edward Loper
#
from distutils.core import setup
import re, sys, epydoc
VERSION = str(epydoc.__version__)
(AUTHOR, EMAIL) = re.match('^(.*?)\s*<(.*)>$', epydoc.__author__).groups()
URL = epydoc.__url__
LICENSE... | 0 |
public_repos/epydoc | public_repos/epydoc/src/Makefile | ############################################################
## epydoc Makefile
##
## Edward Loper
############################################################
##//////////////////////////////////////////////////////////////////////
## Configuration variables
##///////////////////////////////////////////////////////... | 0 |
public_repos/epydoc | public_repos/epydoc/src/.cvsignore | MANIFEST
build
dist
| 0 |
public_repos/epydoc/src | public_repos/epydoc/src/tools/mkdispatch.py | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
"""A tool to allow creation of both single page and multi-page manual.
For each file name in argv, detect title names and print a directive
referring to it as anchor in an html file.
"""
from __future__ import absolute_import
from __future__ import print_function
# ... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/tools/sty2html.py | #!/usr/bin/env python
#
# Convert epydoc's LaTeX sty files to HTML
from __future__ import absolute_import
from __future__ import print_function
from epydoc.docwriter.latex_sty import STYLESHEETS
import re, sys, os.path
TEMPLATE = """\
<?xml version="1.0" encoding="ascii" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/tools/rst2html.py | #!/usr/bin/python
r"""
A customized driver for converting docutils reStructuredText documents
into HTML. This is used to generated HTML versions of the regression
files, for the webpage.
"""
from __future__ import absolute_import
# Docutils imports
from docutils.core import publish_cmdline, default_description
from... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/scripts/epydocgui | #!/usr/bin/env python
#
# Call the graphical interface for Epydoc.
#
from epydoc.gui import gui
gui()
| 0 |
public_repos/epydoc/src | public_repos/epydoc/src/scripts/apirst2html.py | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
"""An HTML writer supporting link to external documentation.
This module is a frontend for the Docutils_ HTML writer. It allows a document
to reference objects documented in the API documentation generated by
extraction tools such as Doxygen_ or Epydoc_.
.. _Docutil... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/scripts/epydoc.py | #!/usr/bin/env python
#
# Call the command line interface for Epydoc.
#
# We have to do some path magic to prevent Python from getting
# confused about the difference between this epydoc module, and the
# real epydoc package. So remove sys.path[0], which contains the
# directory of the script.
import sys, os.path
scr... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/scripts/epydoc.pyw | #!/usr/bin/env python
#
# Call the graphical interface for Epydoc.
#
# We have to do some path magic to prevent Python from getting
# confused about the difference between this epydoc module, and the
# real epydoc package. So sys.path[0], which contains the directory
# of the script.
import sys, os.path
script_path =... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/scripts/.cvsignore | *.pyc | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/scripts/epydoc | #!/usr/bin/env python
#
# Call the command line interface for Epydoc.
#
# Make sure that we don't get confused between an epydoc.py script and
# the real epydoc package.
import sys, os.path
if os.path.exists(os.path.join(sys.path[0], 'epydoc.py')):
del sys.path[0]
from epydoc.cli import cli
cli()
| 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/docstringparser.py | # epydoc -- Docstring processing
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: docstringparser.py 1715 2008-02-13 19:19:47Z edloper $
"""
Parse docstrings and handle any fields it defines, such as C{@type}
and C{@author}. Fields are used to descr... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/seven.py | # Copyright (c) 2018 Pawel Tomulik
#
# 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 without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distr... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/docbuilder.py | # epydoc -- Documentation Builder
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: docbuilder.py 1775 2008-02-24 06:09:50Z edloper $
"""
Construct data structures that encode the API documentation for Python
objects. These data structures are create... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/cli.py | # epydoc -- Command line interface
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: cli.py 1807 2008-03-04 02:32:58Z edloper $
"""
Command-line interface for epydoc. Abbreviated Usage::
epydoc [options] NAMES...
NAMES... The... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/gui.py | #!/usr/bin/env python
#
# objdoc: epydoc command-line interface
# Edward Loper
#
# Created [03/15/02 10:31 PM]
# $Id: gui.py 646 2004-03-19 19:01:37Z edloper $
#
"""
Graphical interface to epydoc. This interface might be useful for
systems where it's inconvenient to use the command-line interface
(such as Windows). ... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/log.py | # epydoc -- Logging
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: log.py 1704 2008-02-01 19:15:34Z edloper $
"""
Functions used to report messages and progress updates to the user.
These functions are delegated to zero or more registered L{Logger}... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/six.py | # Copyright (c) 2010-2018 Benjamin Peterson
#
# 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 without restriction, including without limitation the rights
# to use, copy, modify, merge, publi... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/checker.py | #
# objdoc: epydoc documentation completeness checker
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: checker.py 1366 2006-09-07 15:54:59Z edloper $
#
"""
Documentation completeness checker. This module defines a single
class, C{DocChecker}, which can be used to check the that specified
classes of objects are d... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/docparser.py | # epydoc -- Source code parsing
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: docparser.py 1776 2008-02-24 06:40:17Z edloper $
"""
Extract API documentation about python objects by parsing their source
code.
The function L{parse_docs()}, which pr... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/util.py | # epydoc -- Utility functions
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: util.py 1721 2008-02-15 01:02:30Z edloper $
"""
Miscellaneous utility functions that are used by multiple modules.
@group Python source types: is_module_file, is_package_... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/apidoc.py | # epydoc -- API Documentation Classes
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: apidoc.py 1811 2009-02-03 21:29:51Z edloper $
"""
Classes for encoding API documentation about Python programs.
These classes are used as a common representation f... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/docintrospecter.py | # epydoc -- Introspection
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: docintrospecter.py 1810 2008-03-31 03:22:51Z edloper $
"""
Extract API documentation about python objects by directly introspecting
their values.
The function L{introspect_do... | 0 |
public_repos/epydoc/src | public_repos/epydoc/src/epydoc/__init__.py | # epydoc
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: __init__.py 1750 2008-02-23 16:09:47Z edloper $
"""
Automatic Python reference documentation generator. Epydoc processes
Python modules and docstrings to generate formatted API documentation,... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/javadoc.py | #
# javadoc.py: javadoc docstring parsing
# Edward Loper
#
# Created [07/03/03 12:37 PM]
# $Id: javadoc.py 1574 2007-03-07 02:55:14Z dvarrazzo $
#
"""
Epydoc parser for U{Javadoc<http://java.sun.com/j2se/javadoc/>}
docstrings. Javadoc is an HTML-based markup language that was
developed for documenting Java APIs with ... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/epytext.py | #
# epytext.py: epydoc formatted docstring parsing
# Edward Loper
#
# Created [04/10/01 12:00 AM]
# $Id: epytext.py 1803 2008-02-27 00:32:35Z edloper $
#
"""
Parser for epytext strings. Epytext is a lightweight markup whose
primary intended application is Python documentation strings. This
parser converts Epytext st... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/restructuredtext.py | #
# rst.py: ReStructuredText docstring parsing
# Edward Loper
#
# Created [06/28/03 02:52 AM]
# $Id: restructuredtext.py 1802 2008-02-27 00:28:32Z edloper $
#
"""
Epydoc parser for ReStructuredText strings. ReStructuredText is the
standard markup language used by the Docutils project.
L{parse_docstring()} provides th... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/doctest.py | #
# doctest.py: Syntax Highlighting for doctest blocks
# Edward Loper
#
# Created [06/28/03 02:52 AM]
# $Id: restructuredtext.py 1210 2006-04-10 13:25:50Z edloper $
#
"""
Syntax highlighting for doctest blocks. This module defines two
functions, L{doctest_to_html()} and L{doctest_to_latex()}, which can
be used to per... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/pyval_repr.py | # epydoc -- Marked-up Representations for Python Values
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: apidoc.py 1448 2007-02-11 00:05:34Z dvarrazzo $
"""
Syntax highlighter for Python values. Currently provides special
colorization support for:
... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/plaintext.py | #
# plaintext.py: plaintext docstring parsing
# Edward Loper
#
# Created [04/10/01 12:00 AM]
# $Id: plaintext.py 1574 2007-03-07 02:55:14Z dvarrazzo $
#
"""
Parser for plaintext docstrings. Plaintext docstrings are rendered as
verbatim output, preserving all whitespace.
"""
from __future__ import absolute_import
__... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/markup/__init__.py | #
# epydoc package file
#
# A python documentation Module
# Edward Loper
#
# $Id: __init__.py 1762 2008-02-23 20:10:25Z edloper $
#
"""
Markup language support for docstrings. Each submodule defines a
parser for a single markup language. These parsers convert an
object's docstring to a L{ParsedDocstring}, a standard... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/plaintext.doctest | Regression Testing for plaintext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> from epydoc.test.util import print_warnings
>>> print_warnings()
Summary
=======
The implementation of the summaization function works as expected.
>>> from epydoc.markup import plaintext
>>> def getsummary(s):
... p = plaintext.parse_d... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/apidoc.doctest | Regression Testing for epydoc.apidoc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This file serves to provide both documentation and regression tests
for the epydoc.apidoc module. The main purpose of this module is to
define the `APIDoc` class hierarchy, which is used to encode API
documentation about Python programs. The AP... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/util.py | #
# epydoc -- Utility functions used by regression tests (*.doctest)
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: html.py 1420 2007-01-28 14:19:30Z dvarrazzo $
#
"""
Utility functions used by the regression tests (C{*.doctest}).
"""
from __future__ import absolute_import
from __future__ import print_function... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/epytext.doctest | Regression Testing for epytext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
These tests were taken pretty much verbatim out of the old unittests
from epydoc 2.1. They could use some serious updating, when I get the
time, esp. given that it's so much easier to write tests with doctest
than it was with unittest.
>>> from epydoc.... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/javadoc.doctest | Regression Testing for javadoc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> from epydoc.test.util import print_warnings
>>> print_warnings()
Summary
=======
The implementation of the summaization function works as expected.
>>> from epydoc.markup import javadoc
>>> def getsummary(s):
... p = javadoc.parse_docstring... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/cli.doctest | Regression Testing for epydoc.cli
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A helper function to check the behavior of parse_arguments:
>>> import sys, epydoc.cli
>>> from epydoc.seven import six
>>> def parse_arguments(argv):
... defaults = epydoc.cli.option_defaults()
... if isinstance(argv, six... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/test/__init__.py | # epydoc -- Regression testing
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: __init__.py 1502 2007-02-14 08:38:44Z edloper $
"""
Regression testing.
"""
from __future__ import absolute_import
from __future__ import print_function
__docformat__ =... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/docparser.doctest | Regression Testing for epydoc.docparser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The `epydoc.docparser` module is used to extract API documentation by
parsing the source code of Python files. Its primary interface is
`docparser.parse_docs()`, which takes a module's filename, and returns a
ModuleDoc describing that modu... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/zope3.doctest | Regression Testing for Zope 3 support
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:RequireModule: zope.interface
>>> from epydoc.test.util import runintrospecter
We treat zope interface objects as if they were classes:
>>> runintrospecter(s='''
... from zope.interface import Interface, Attribute
... ... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/pyval_repr.doctest | Regression Testing for epydoc.markup.pyval_repr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> from epydoc.markup.pyval_repr import *
>>> import re
>>> colorizer = PyvalColorizer(linelen=40)
>>> def color(v, linebreakok=True):
... colorizer = PyvalColorizer(linelen=40, linebreakok=linebrea... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/zope2.doctest | Regression Testing for Zope 2 support
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:RequireModule: ExtensionClass
>>> from epydoc.test.util import runintrospecter
We treat extension classes as if they were classes:
>>> from ExtensionClass import ExtensionClass
>>> runintrospecter(s='''
... from Extensi... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/restructuredtext.doctest | Regression Testing for restructuredtext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:RequireModule: docutils
>>> from epydoc.test.util import print_warnings
>>> print_warnings()
Summary
=======
The implementation of the summaization function works as expected.
>>> from epydoc.markup import restructuredtext
>>> d... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/encoding.doctest | End-to-end Tests for Unicode Encoding
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Function
=============
The function `testencoding` is used as an end-to-end test for unicode
encodings. It takes a given string, writes it to a python file, and
processes that file's documentation. It then generates HTML output
from the ... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/docbuilder.doctest | Regression Testing for epydoc.docbuilder
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Function
=============
This test function takes a string containing the contents of a module.
It writes the string contents to a file, imports the file as a module,
and uses build_doc to build documentation, and pretty prints the r... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py3/docintrospecter.doctest | Regression Testing for epydoc.docintrospecter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The `epydoc.docintrospecter` module is used to extract API documentation
by introspecting Python objects directy. Its primary interface is
`docintrospecter.introspect_docs()`, which takes a Python object, and returns a
`ValueDo... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/docparser.doctest | Regression Testing for epydoc.docparser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The `epydoc.docparser` module is used to extract API documentation by
parsing the source code of Python files. Its primary interface is
`docparser.parse_docs()`, which takes a module's filename, and returns a
ModuleDoc describing that modu... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/zope3.doctest | Regression Testing for Zope 3 support
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:RequireModule: zope.interface
>>> from epydoc.test.util import runintrospecter
We treat zope interface objects as if they were classes:
>>> runintrospecter(s='''
... from zope.interface import Interface, Attribute
... ... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/pyval_repr.doctest | Regression Testing for epydoc.markup.pyval_repr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> from epydoc.markup.pyval_repr import *
>>> import re
>>> colorizer = PyvalColorizer(linelen=40)
>>> def color(v, linebreakok=True):
... colorizer = PyvalColorizer(linelen=40, linebreakok=linebrea... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/zope2.doctest | Regression Testing for Zope 2 support
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:RequireModule: ExtensionClass
>>> from epydoc.test.util import runintrospecter
We treat extension classes as if they were classes:
>>> from ExtensionClass import ExtensionClass
>>> runintrospecter(s='''
... from Extensi... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/restructuredtext.doctest | Regression Testing for restructuredtext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:RequireModule: docutils
>>> from epydoc.test.util import print_warnings
>>> print_warnings()
Summary
=======
The implementation of the summaization function works as expected.
>>> from epydoc.markup import restructuredtext
>>> d... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/encoding.doctest | End-to-end Tests for Unicode Encoding
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Function
=============
The function `testencoding` is used as an end-to-end test for unicode
encodings. It takes a given string, writes it to a python file, and
processes that file's documentation. It then generates HTML output
from the ... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/docbuilder.doctest | Regression Testing for epydoc.docbuilder
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Function
=============
This test function takes a string containing the contents of a module.
It writes the string contents to a file, imports the file as a module,
and uses build_doc to build documentation, and pretty prints the r... | 0 |
public_repos/epydoc/src/epydoc/test | public_repos/epydoc/src/epydoc/test/py2/docintrospecter.doctest | Regression Testing for epydoc.docintrospecter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The `epydoc.docintrospecter` module is used to extract API documentation
by introspecting Python objects directy. Its primary interface is
`docintrospecter.introspect_docs()`, which takes a Python object, and returns a
`ValueDo... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/html_css.py | #
# epydoc.css: default epydoc CSS stylesheets
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: html_css.py 1736 2008-02-23 01:07:30Z edloper $
#
"""
Predefined CSS stylesheets for the HTML outputter (L{epydoc.docwriter.html}).
@type STYLESHEETS: C{dictionary} from C{string} to C{(string, string)}
@var STYLESHEE... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/html_colorize.py | #
# epydoc.html: HTML colorizers
# Edward Loper
#
# Created [10/16/02 09:49 PM]
# $Id: html_colorize.py 1716 2008-02-14 22:21:23Z edloper $
#
"""
Functions to produce colorized HTML code for various objects.
Currently, C{html_colorize} defines functions to colorize
Python source code.
"""
from __future__ import absol... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/latex_sty.py | # -*- latex -*-
#
# epydoc.css: LaTeX stylesheets (*.sty) for epydoc's LaTeX writer
#
# $Id: html_css.py 1717 2008-02-14 22:21:41Z edloper $
#
"""
LaTeX stylesheets (*.sty) for epydoc's LaTeX writer.
"""
#: A disclaimer that is appended to the bottom of the BASE and
#: BOXES stylesheets.
NIST_DISCLAIMER = r"""
% This... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/xlink.py | """
A Docutils_ interpreted text role for cross-API reference support.
This module allows a Docutils_ document to refer to elements defined in
external API documentation. It is possible to refer to many external API
from the same document.
Each API documentation is assigned a new interpreted text role: using such
int... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/html.py | #
# epydoc -- HTML output generator
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: html.py 1812 2009-02-03 21:31:04Z edloper $
#
"""
The HTML output generator for epydoc. The main interface provided by
this module is the L{HTMLWriter} class.
@todo: Add a cache to L{HTMLWriter.url()}?
"""
from __future__ impo... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/html_help.py | #
# epydoc.css: default help page
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: html_help.py 1239 2006-07-05 11:29:50Z edloper $
#
"""
Default help file for the HTML outputter (L{epydoc.docwriter.html}).
@type HTML_HELP: C{string}
@var HTML_HELP: The contents of the HTML body for the default
help page.
"""
__... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/latex.py | #
# epydoc.py: epydoc LaTeX output generator
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: latex.py 1809 2008-03-05 18:40:49Z edloper $
#
"""
The LaTeX output generator for epydoc. The main interface provided by
this module is the L{LatexWriter} class.
@todo: Inheritance=listed
"""
from __future__ import ab... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/plaintext.py | # epydoc -- Plaintext output generation
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: plaintext.py 1812 2009-02-03 21:31:04Z edloper $
"""
Plaintext output generation.
"""
from __future__ import absolute_import
from __future__ import print_functi... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/dotgraph.py | # epydoc -- Graph generation
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: dotgraph.py 1805 2008-02-27 20:24:06Z edloper $
"""
Render Graphviz directed graphs as images. Below are some examples.
.. importgraph::
.. classtree:: epydoc.apidoc.API... | 0 |
public_repos/epydoc/src/epydoc | public_repos/epydoc/src/epydoc/docwriter/__init__.py | # epydoc -- Output generation
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: __init__.py 956 2006-03-10 01:30:51Z edloper $
"""
Output generation.
"""
__docformat__ = 'epytext en'
| 0 |
public_repos/epydoc | public_repos/epydoc/doc/relatedprojects.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Related Projects</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: relatedprojects.html 1211 2006-04-10 19:38:37Z edloper $ -->
<body>
<div class="body">
<h1> Related Projects</h1>
<h2> 1. Doc-sig </h2>
<p> <a href... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/history.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Epydoc History</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: history.html 1211 2006-04-10 19:38:37Z edloper $ -->
<body>
<div class="body">
<h1> Epydoc History </h1>
<p> I originally became interested in automat... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/configfile.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Epydoc: Sample Configuration File</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: using.html 574 2003-07-21 06:51:56Z edloper $ -->
<body>
<div class="body">
<h1>Sample Configuration File</h1>
<p>Configuration fil... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/manual-reference.txt | References
==========
.. $Id: manual-reference.txt 1772 2008-02-24 03:43:33Z edloper $
Command Line Usage
------------------
Usage: ``epydoc.py`` [*ACTION*] [*options*] *NAMES...*
NAMES...
A list of the Python objects that should be documented. Objects can be
specified using dotted names (such as ``os.path`... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/installing.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Installing Epydoc</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: installing.html 1692 2008-01-30 17:11:29Z edloper $ -->
<body>
<div class="body">
<h1>Installing Epydoc</h1>
<div class="box"><h2 class="box-title"... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/using.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Using Epydoc</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: using.html 1538 2007-02-20 09:39:50Z dvarrazzo $ -->
<body>
<div class="body">
<h1>Using Epydoc</h1>
<p>Epydoc provides two user interfaces:</p>
<ul>
... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/pycon-epydoc.html | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Epydoc: PyCon 2004</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<body>
<div class="body">
<h1> Epydoc: PyCon 2004 </h1>
<h2>Abstract</h2>
<p> Epydoc is a tool for generating API documentation... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/inh_example.py | #
# inh_example.py
#
# Example code used by the epytext manual.
#
# These classes are used to illustrate the different inheritance
# styles. (grouped, listed, and included).
#
"""
Examples for the epytext manual.
"""
__docformat__='epytext'
class Animal:
def eat(self, food): "Consume the given food object."
de... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/docstrings.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Python Docstrings</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: docstrings.html 1211 2006-04-10 19:38:37Z edloper $ -->
<body>
<div class="body">
<h1> Python Docstrings </h1>
<p> Python documentation strings (or... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/pycon-epydoc.ps | %!PS-Adobe-2.0
%%Creator: dvips(k) 5.86e Copyright 2001 Radical Eye Software
%%Title: pycon.dvi
%%Pages: 6
%%PageOrder: Ascend
%%BoundingBox: 0 0 612 792
%%DocumentFonts: CMR17 CMBX12 CMR12 CMR10 CMTI10 CMTT10 CMSY10 CMBX10
%%+ CMR7 CMR6 CMR8 CMTT8 CMITT10 CMMI10 CMMI7
%%EndComments
%DVIPSWebPage: (www.radicaleye.com)
... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/fields.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Epydoc Fields</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: fields.html 1575 2007-03-08 21:28:07Z edloper $ -->
<body>
<div class="body">
<h1>Epydoc Fields</h1>
<p> Fields are used to describe specific properties... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/future.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Epydoc: Future Directions</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: future.html 1211 2006-04-10 19:38:37Z edloper $ -->
<body>
<div class="body">
<h1> Epydoc: Future Directions </h1>
<h2> Short Term </h2>
<p... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/manual.txt | ==================
Epydoc
==================
-------------------------------------------------
Automatic API Documentation Generation for Python
-------------------------------------------------
.. $Id: manual.txt 1559 2007-02-27 06:42:46Z edloper $
:Author: `Edward Loper <edloper@gradient.cis.upenn.edu>`__
:V... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/manual-epytext.txt | The Epytext Markup Language
===========================
.. $Id: manual-epytext.txt 1547 2007-02-21 17:34:54Z dvarrazzo $
A Brief Introduction
--------------------
Epytext is a simple lightweight markup language that lets you add formatting
and structue to docstrings. Epydoc uses that formatting and structure to
prod... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/epydoc.css | /*
* Cascading Style Sheet for edloper's webpage
* Copyright (C) 2002 Edward Loper
*
* This stylesheet is used to give my webpage a consistant feel.
* My webpage currently resides at <http://www.cis.upenn.edu/~edloper>
*/
/*===================================================================*/
/* Default body ap... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/manual-docstring.txt | Python Docstrings
=================
.. $Id: manual-docstring.txt 1575 2007-03-08 21:28:07Z edloper $
Python documentation strings (or *docstrings*) provide a convenient way of
associating documentation with Python modules, functions, classes, and methods.
An object's docsting is defined by including a string constant... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/epytext.html | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>The Epytext Markup Language</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"/>
</head>
<!-- $Id: epytext.html 1211 2006-04-10 19:38:37Z edloper $ -->
<body>
<div class="body">
<h1>The Epytext Markup Language</h1>
<a name="overview"/>
... | 0 |
public_repos/epydoc | public_repos/epydoc/doc/epytext_example.py | #
# epytext_example.py
#
# Example code used by the epytext manual.
#
# These functions are used by epytextintro.html to illustrate epytext,
# and show what output is generated by epydoc for a simple docstring.
#
"""
Examples for the epytext manual.
"""
__docformat__='epytext'
def x_intercept(m, b):
"""
Return... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.