Module Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Str Import alias alias alias Import alias Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str ImportFrom alias alias alias FunctionDef arguments args defaults body Expr Str ImportFrom alias Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Num attr handlers ExceptHandler body Print Str Expr Call AttributeLoad NameLoad attr Num If CompareLt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad If AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad orelse Assign NameStore BinOpMod Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num Exec NameLoad Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Print NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Utility for extracting references from bibtex database file.
Extract formatted reference, citekey, or entry from a bibtex file.
Search by key or by regular expression.

bibsearchy.py -h gives usage options.

The script allows style based formatting.  The default style
produces a reference for pasting into a plain text file.

Example::

	python bibsearch.py my_database.bib Smith:1998
	   -> produces a formated reference if citekey Smith:1998 is found
	
	cat ref_list.txt | python bibsearch.py -l my_database.bib
		-> produces a bibtex-format file of all references in list.


:author: Dylan Schwilk
:contact: http://www.schwilk.org
:author: Alan G Isaac
:contact: http://www.american.edu/cas/econ/faculty/isaac/isaac1.htm
:license: MIT (see `license.txt`_)
:date: 2006-08-19
:see: reflist.py (useful in conjuction with bibsearch.py)
:TODO: add additional search capabilities
:TODO: add HTML output option
:TODO: add output options (e.g., to file)

.. _license.txt: ./license.txt
 N/A __docformat__ restructuredtext en N/A __authors__ N/A Dylan W. Schwilk Alan G. Isaac N/A __version__ 1.8.1 N/A __needs__ 2.4 N/A string sys os N/A logging N/A N/A N/A logging basicConfig format 
%(levelname)s:
%(message)s
 N/A bibsearch_logger N/A N/A logging getLogger bibstuff_logger bibstuff bibfile bibgrammar bibstyles main N/A N/A N/A N/A N/A Command-line tool.
	See bibsearch.py -h for help.
	 optparse OptionParser N/A usage usage: %prog [options] FILE [search strings] N/A parser N/A OptionParser usage usage version N/A %prog  __version__ N/A N/A N/A parser add_option -k --key action store_true dest citekey_output default False help Output citekey rather than reference N/A N/A N/A parser add_option -l --long action store_true dest long_output default False help Output entire bibtex entry N/A N/A N/A parser add_option -r --regex action store_true dest search_input default False help Search for regular expression rather than key N/A N/A N/A parser add_option -s --stylefile action store dest stylefile default default.py help Specify user-chosen style file metavar FILE N/A N/A N/A parser add_option -f --field action store type string dest field default None help Search only FIELD; default=%default. metavar FIELD N/A N/A N/A parser add_option -v --verbose action store_true dest verbose default False help Print INFO messages to stdout, default=%default N/A N/A N/A parser add_option -V --very_verbose action store_true dest very_verbose default False help Print DEBUG messages to stdout, default=%default N/A N/A options args N/A N/A parser parse_args N/A N/A options verbose N/A N/A N/A N/A bibsearch_logger setLevel N/A logging INFO N/A N/A options very_verbose N/A N/A N/A N/A bibsearch_logger setLevel N/A logging DEBUG N/A N/A N/A bibsearch_logger debug N/A Script running.
args=%s
style file=%s N/A args N/A options stylefile N/A N/A N/A src N/A N/A N/A open N/A args N/A 0 read N/A N/A N/A N/A Error: No bibtex file found. N/A N/A N/A sys exit 1 N/A N/A N/A len args 2 N/A N/A searches N/A N/A string split N/A N/A N/A sys stdin read N/A N/A searches N/A args N/A 1 N/A parsed_bibfile N/A N/A bibfile BibFile N/A N/A N/A bibgrammar Parse src parsed_bibfile N/A entrylist N/A N/A N/A options field N/A N/A s searches N/A N/A N/A N/A entrylist extend N/A N/A parsed_bibfile search_entries s field N/A options field N/A N/A N/A options search_input N/A N/A s searches N/A N/A N/A N/A entrylist extend N/A N/A parsed_bibfile search_entries s N/A N/A entrylist N/A N/A parsed_bibfile get_entrylist searches discard True N/A entrylist N/A N/A result N/A N/A options citekey_output N/A N/A result N/A N/A join N/A N/A e citekey N/A e entrylist N/A N/A N/A options long_output N/A N/A result N/A N/A join N/A N/A str e N/A e entrylist N/A N/A style_stmt N/A import bibstuff.bibstyles.%s as style N/A N/A N/A N/A os path splitext N/A options stylefile N/A 0 N/A style_stmt N/A globals N/A citation_manager N/A N/A style CitationManager N/A parsed_bibfile citekeys N/A N/A e citekey N/A e entrylist citation_template N/A style CITATION_TEMPLATE N/A cite_processor N/A N/A N/A bibstyles shared CiteRefProcessor citation_manager N/A result N/A N/A citation_manager make_citations N/A result N/A N/A N/A N/A bibsearch_logger info No matches. N/A N/A N/A __name__ __main__ N/A N/A N/A main