SYMBOL INDEX (342 symbols across 21 files) FILE: apply_headers.py function get_contributors (line 26) | def get_contributors(): function generate_license (line 41) | def generate_license(contribs): function apply_headers (line 75) | def apply_headers(): function write_header (line 98) | def write_header(pyfile, reader, contents, header): FILE: pymarc/exceptions.py class PymarcException (line 10) | class PymarcException(Exception): class RecordLengthInvalid (line 16) | class RecordLengthInvalid(PymarcException): method __str__ (line 19) | def __str__(self): class RecordLeaderInvalid (line 23) | class RecordLeaderInvalid(PymarcException): method __str__ (line 26) | def __str__(self): class RecordDirectoryInvalid (line 30) | class RecordDirectoryInvalid(PymarcException): method __str__ (line 33) | def __str__(self): class NoFieldsFound (line 37) | class NoFieldsFound(PymarcException): method __str__ (line 40) | def __str__(self): class BaseAddressInvalid (line 44) | class BaseAddressInvalid(PymarcException): method __str__ (line 47) | def __str__(self): class BaseAddressNotFound (line 51) | class BaseAddressNotFound(PymarcException): method __str__ (line 54) | def __str__(self): class WriteNeedsRecord (line 58) | class WriteNeedsRecord(PymarcException): method __str__ (line 61) | def __str__(self): class NoActiveFile (line 65) | class NoActiveFile(PymarcException): method __str__ (line 68) | def __str__(self): class FieldNotFound (line 72) | class FieldNotFound(PymarcException): method __str__ (line 75) | def __str__(self): class BadSubfieldCodeWarning (line 79) | class BadSubfieldCodeWarning(Warning): class BadLeaderValue (line 85) | class BadLeaderValue(PymarcException): FILE: pymarc/field.py class Field (line 15) | class Field: method __init__ (line 37) | def __init__(self, tag, indicators=None, subfields=None, data=u""): method __iter__ (line 58) | def __iter__(self): method __str__ (line 62) | def __str__(self): method __getitem__ (line 89) | def __getitem__(self, subfield): method __contains__ (line 103) | def __contains__(self, subfield): method __setitem__ (line 114) | def __setitem__(self, code, value): method __next__ (line 135) | def __next__(self): method value (line 144) | def value(self): method get_subfields (line 153) | def get_subfields(self, *codes): method add_subfield (line 171) | def add_subfield(self, code, value, pos=None): method delete_subfield (line 191) | def delete_subfield(self, code): method is_control_field (line 211) | def is_control_field(self): method as_marc (line 220) | def as_marc(self, encoding): method format_field (line 233) | def format_field(self): method is_subject_field (line 254) | def is_subject_field(self): method indicator1 (line 264) | def indicator1(self): method indicator1 (line 269) | def indicator1(self, value): method indicator2 (line 274) | def indicator2(self): method indicator2 (line 279) | def indicator2(self, value): class RawField (line 284) | class RawField(Field): method as_marc (line 290) | def as_marc(self, encoding=None): function map_marc8_field (line 302) | def map_marc8_field(f): FILE: pymarc/leader.py class Leader (line 12) | class Leader(object): method __init__ (line 50) | def __init__(self, leader): method __getitem__ (line 57) | def __getitem__(self, item): method __setitem__ (line 67) | def __setitem__(self, item, value): method __str__ (line 82) | def __str__(self): method _replace_values (line 87) | def _replace_values(self, position, value): method record_length (line 100) | def record_length(self): method record_length (line 106) | def record_length(self, value): method record_status (line 114) | def record_status(self): method record_status (line 120) | def record_status(self, value): method type_of_record (line 128) | def type_of_record(self): method type_of_record (line 134) | def type_of_record(self, value): method bibliographic_level (line 142) | def bibliographic_level(self): method bibliographic_level (line 148) | def bibliographic_level(self, value): method type_of_control (line 156) | def type_of_control(self): method type_of_control (line 162) | def type_of_control(self, value): method coding_scheme (line 170) | def coding_scheme(self): method coding_scheme (line 176) | def coding_scheme(self, value): method indicator_count (line 186) | def indicator_count(self): method indicator_count (line 192) | def indicator_count(self, value): method subfield_code_count (line 200) | def subfield_code_count(self): method subfield_code_count (line 206) | def subfield_code_count(self, value): method base_address (line 214) | def base_address(self): method base_address (line 220) | def base_address(self, value): method encoding_level (line 230) | def encoding_level(self): method encoding_level (line 236) | def encoding_level(self, value): method cataloging_form (line 244) | def cataloging_form(self): method cataloging_form (line 250) | def cataloging_form(self, value): method multipart_ressource (line 260) | def multipart_ressource(self): method multipart_ressource (line 266) | def multipart_ressource(self, value): method length_of_field_length (line 276) | def length_of_field_length(self): method length_of_field_length (line 282) | def length_of_field_length(self, value): method starting_character_position_length (line 292) | def starting_character_position_length(self): method starting_character_position_length (line 298) | def starting_character_position_length(self, value): method implementation_defined_length (line 309) | def implementation_defined_length(self): method implementation_defined_length (line 315) | def implementation_defined_length(self, value): FILE: pymarc/marc8.py function marc8_to_unicode (line 18) | def marc8_to_unicode(marc8, hide_utf8_warnings=False): class MARC8ToUnicode (line 50) | class MARC8ToUnicode: method __init__ (line 73) | def __init__(self, G0=basic_latin, G1=ansel, quiet=False): method translate (line 81) | def translate(self, marc8_string): FILE: pymarc/marcjson.py class JsonHandler (line 12) | class JsonHandler: method __init__ (line 15) | def __init__(self): method element (line 22) | def element(self, element_dict, name=None): method elements (line 50) | def elements(self, dict_list): method process_record (line 58) | def process_record(self, record): function parse_json_to_array (line 63) | def parse_json_to_array(json_file): FILE: pymarc/marcxml.py class XmlHandler (line 22) | class XmlHandler(ContentHandler): method __init__ (line 32) | def __init__(self, strict=False, normalize_form=None): method startElementNS (line 46) | def startElementNS(self, name, qname, attrs): method endElementNS (line 67) | def endElementNS(self, name, qname): method characters (line 97) | def characters(self, chars): method process_record (line 101) | def process_record(self, record): function parse_xml (line 106) | def parse_xml(xml_file, handler): function map_xml (line 114) | def map_xml(function, *files): function parse_xml_to_array (line 133) | def parse_xml_to_array(xml_file, strict=False, normalize_form=None): function record_to_xml (line 147) | def record_to_xml(record, quiet=False, namespace=False): function record_to_xml_node (line 153) | def record_to_xml_node(record, quiet=False, namespace=False): FILE: pymarc/reader.py class Reader (line 18) | class Reader: method __iter__ (line 21) | def __iter__(self): class MARCReader (line 25) | class MARCReader(Reader): method current_chunk (line 104) | def current_chunk(self): method current_exception (line 109) | def current_exception(self): method __init__ (line 113) | def __init__( method close (line 140) | def close(self): method __next__ (line 146) | def __next__(self): function map_records (line 180) | def map_records(f, *files): class JSONReader (line 195) | class JSONReader(Reader): method __init__ (line 198) | def __init__(self, marc_target, encoding="utf-8", stream=False): method __iter__ (line 218) | def __iter__(self): method __next__ (line 225) | def __next__(self): FILE: pymarc/record.py class Record (line 40) | class Record: method __init__ (line 78) | def __init__( method __str__ (line 105) | def __str__(self): method __getitem__ (line 116) | def __getitem__(self, tag): method __contains__ (line 128) | def __contains__(self, tag): method __iter__ (line 138) | def __iter__(self): method __next__ (line 142) | def __next__(self): method add_field (line 148) | def add_field(self, *fields): method add_grouped_field (line 155) | def add_grouped_field(self, *fields): method add_ordered_field (line 168) | def add_ordered_field(self, *fields): method _sort_fields (line 180) | def _sort_fields(self, field, mode): method remove_field (line 206) | def remove_field(self, *fields): method remove_fields (line 214) | def remove_fields(self, *tags): method get_fields (line 224) | def get_fields(self, *args): method decode_marc (line 246) | def decode_marc( method as_marc (line 374) | def as_marc(self): method as_dict (line 427) | def as_dict(self): method as_json (line 445) | def as_json(self, **kwargs): method title (line 453) | def title(self): method issn_title (line 466) | def issn_title(self): method isbn (line 479) | def isbn(self): method issn (line 498) | def issn(self): method sudoc (line 505) | def sudoc(self): method author (line 518) | def author(self): method uniformtitle (line 528) | def uniformtitle(self): method series (line 536) | def series(self): method subjects (line 544) | def subjects(self): method addedentries (line 573) | def addedentries(self): method location (line 599) | def location(self): method notes (line 603) | def notes(self): method physicaldescription (line 666) | def physicaldescription(self): method publisher (line 670) | def publisher(self): method pubyear (line 683) | def pubyear(self): function map_marc8_record (line 693) | def map_marc8_record(record): function normalize_subfield_code (line 702) | def normalize_subfield_code(subfield): FILE: pymarc/writer.py class Writer (line 15) | class Writer(object): method __init__ (line 18) | def __init__(self, file_handle): method write (line 22) | def write(self, record): method close (line 27) | def close(self, close_fh=True): class JSONWriter (line 38) | class JSONWriter(Writer): method __init__ (line 63) | def __init__(self, file_handle): method write (line 69) | def write(self, record): method close (line 77) | def close(self, close_fh=True): class MARCWriter (line 87) | class MARCWriter(Writer): method __init__ (line 116) | def __init__(self, file_handle): method write (line 120) | def write(self, record): class TextWriter (line 126) | class TextWriter(Writer): method __init__ (line 150) | def __init__(self, file_handle): method write (line 155) | def write(self, record): class XMLWriter (line 164) | class XMLWriter(Writer): method __init__ (line 195) | def __init__(self, file_handle): method write (line 201) | def write(self, record): method close (line 207) | def close(self, close_fh=True): FILE: test/test_encode.py class Encode (line 12) | class Encode(unittest.TestCase): method test_encode_decode (line 13) | def test_encode_decode(self): method test_encode_decode_alphatag (line 27) | def test_encode_decode_alphatag(self): function suite (line 42) | def suite(): FILE: test/test_field.py class FieldTest (line 13) | class FieldTest(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_string (line 31) | def test_string(self): method test_controlfield_string (line 36) | def test_controlfield_string(self): method test_indicators (line 41) | def test_indicators(self): method test_subfields_created (line 45) | def test_subfields_created(self): method test_subfield_short (line 49) | def test_subfield_short(self): method test_subfields (line 53) | def test_subfields(self): method test_subfields_multi (line 59) | def test_subfields_multi(self): method test_encode (line 69) | def test_encode(self): method test_membership (line 72) | def test_membership(self): method test_iterator (line 76) | def test_iterator(self): method test_value (line 83) | def test_value(self): method test_non_integer_tag (line 89) | def test_non_integer_tag(self): method test_add_subfield (line 93) | def test_add_subfield(self): method test_delete_subfield (line 104) | def test_delete_subfield(self): method test_is_subject_field (line 115) | def test_is_subject_field(self): method test_format_field (line 119) | def test_format_field(self): method test_tag_normalize (line 130) | def test_tag_normalize(self): method test_alphatag (line 134) | def test_alphatag(self): method test_setitem_no_key (line 140) | def test_setitem_no_key(self): method test_setitem_repeated_key (line 151) | def test_setitem_repeated_key(self): method test_iter_over_controlfield (line 163) | def test_iter_over_controlfield(self): method test_setitem (line 169) | def test_setitem(self): method test_delete_subfield_only_by_code (line 173) | def test_delete_subfield_only_by_code(self): method test_set_indicators_affects_str (line 179) | def test_set_indicators_affects_str(self): method test_set_indicators_affects_marc (line 186) | def test_set_indicators_affects_marc(self): function suite (line 195) | def suite(): FILE: test/test_json.py class JsonReaderTest (line 13) | class JsonReaderTest(unittest.TestCase): method setUp (line 14) | def setUp(self): method testRoundtrip (line 21) | def testRoundtrip(self): method testOneRecord (line 37) | def testOneRecord(self): class JsonTest (line 44) | class JsonTest(unittest.TestCase): method setUp (line 45) | def setUp(self): method test_as_dict_single (line 53) | def test_as_dict_single(self): method test_as_json_types (line 68) | def test_as_json_types(self): method test_as_json_simple (line 82) | def test_as_json_simple(self): method test_as_json_multiple (line 99) | def test_as_json_multiple(self): class JsonParse (line 104) | class JsonParse(unittest.TestCase): method setUp (line 105) | def setUp(self): method testRoundtrip (line 112) | def testRoundtrip(self): method testParseJsonXml (line 120) | def testParseJsonXml(self): function suite (line 130) | def suite(): FILE: test/test_leader.py function random_string (line 36) | def random_string(length): class LeaderTest (line 42) | class LeaderTest(unittest.TestCase): method test_leader_invalid_length (line 45) | def test_leader_invalid_length(self): method test_leader_value (line 48) | def test_leader_value(self): method test_str (line 52) | def test_str(self): method test_add (line 56) | def test_add(self): method test_getters (line 61) | def test_getters(self): method test_setters (line 67) | def test_setters(self): method test_setters_errors (line 77) | def test_setters_errors(self): function suite (line 85) | def suite(): FILE: test/test_marc8.py class MARC8Test (line 16) | class MARC8Test(TestCase): method test_marc8_reader (line 17) | def test_marc8_reader(self): method test_marc8_reader_to_unicode (line 26) | def test_marc8_reader_to_unicode(self): method test_marc8_reader_to_1251 (line 35) | def test_marc8_reader_to_1251(self): method test_marc8_reader_to_1251_without_1251 (line 44) | def test_marc8_reader_to_1251_without_1251(self): method test_marc8_reader_to_unicode_bad_eacc_sequence (line 57) | def test_marc8_reader_to_unicode_bad_eacc_sequence(self): method test_marc8_reader_to_unicode_bad_escape (line 66) | def test_marc8_reader_to_unicode_bad_escape(self): method test_marc8_to_unicode (line 75) | def test_marc8_to_unicode(self): method test_writing_unicode (line 92) | def test_writing_unicode(self): method test_reading_utf8_with_flag (line 107) | def test_reading_utf8_with_flag(self): method test_reading_utf8_without_flag (line 131) | def test_reading_utf8_without_flag(self): method test_record_create_force_utf8 (line 168) | def test_record_create_force_utf8(self, force_utf8=True): method test_subscript_2 (line 172) | def test_subscript_2(self): method test_eszett_euro (line 178) | def test_eszett_euro(self): method test_alif (line 190) | def test_alif(self): function suite (line 198) | def suite(): FILE: test/test_ordered_fields.py class OrderedFieldsTest (line 12) | class OrderedFieldsTest(unittest.TestCase): method test_add_ordered_fields (line 13) | def test_add_ordered_fields(self): method test_add_grouped_fields (line 33) | def test_add_grouped_fields(self): function suite (line 51) | def suite(): FILE: test/test_reader.py class MARCReaderBaseTest (line 15) | class MARCReaderBaseTest(object): method test_iterator (line 16) | def test_iterator(self): method test_string (line 22) | def test_string(self): class MARCReaderFileTest (line 32) | class MARCReaderFileTest(unittest.TestCase, MARCReaderBaseTest): method setUp (line 35) | def setUp(self): method tearDown (line 38) | def tearDown(self): method test_map_records (line 42) | def test_map_records(self): method test_multi_map_records (line 52) | def test_multi_map_records(self): method disabled_test_codecs (line 65) | def disabled_test_codecs(self): method test_bad_subfield (line 73) | def test_bad_subfield(self): method test_bad_indicator (line 79) | def test_bad_indicator(self): method test_regression_45 (line 85) | def test_regression_45(self): method test_strict_mode (line 94) | def test_strict_mode(self): class MARCReaderStringTest (line 105) | class MARCReaderStringTest(unittest.TestCase, MARCReaderBaseTest): method setUp (line 106) | def setUp(self): class MARCReaderFilePermissiveTest (line 116) | class MARCReaderFilePermissiveTest(unittest.TestCase): method setUp (line 119) | def setUp(self): method tearDown (line 124) | def tearDown(self): method test_permissive_mode (line 128) | def test_permissive_mode(self): function suite (line 173) | def suite(): FILE: test/test_record.py class RecordTest (line 15) | class RecordTest(unittest.TestCase): method test_add_field (line 16) | def test_add_field(self): method test_remove_field (line 24) | def test_remove_field(self): method test_quick_access (line 40) | def test_quick_access(self): method test_membership (line 49) | def test_membership(self): method test_field_not_found (line 58) | def test_field_not_found(self): method test_find (line 62) | def test_find(self): method test_multi_find (line 78) | def test_multi_find(self): method test_bad_leader (line 91) | def test_bad_leader(self): method test_bad_base_address (line 95) | def test_bad_base_address(self): method test_title (line 101) | def test_title(self): method test_issn_title (line 111) | def test_issn_title(self): method test_isbn (line 125) | def test_isbn(self): method test_issn (line 149) | def test_issn(self): method test_multiple_isbn (line 157) | def test_multiple_isbn(self): method test_author (line 163) | def test_author(self): method test_uniformtitle (line 177) | def test_uniformtitle(self): method test_subjects (line 197) | def test_subjects(self): method test_added_entries (line 224) | def test_added_entries(self): method test_physicaldescription (line 245) | def test_physicaldescription(self): method test_location (line 274) | def test_location(self): method test_notes (line 308) | def test_notes(self): method test_publisher (line 326) | def test_publisher(self): method test_pubyear (line 360) | def test_pubyear(self): method test_alphatag (line 394) | def test_alphatag(self): method test_copy (line 404) | def test_copy(self): method test_as_marc_with_explicit_leader (line 415) | def test_as_marc_with_explicit_leader(self): method test_remove_fields (line 434) | def test_remove_fields(self): method test_as_marc_consistency (line 443) | def test_as_marc_consistency(self): method test_init_with_no_leader (line 449) | def test_init_with_no_leader(self): method test_init_with_no_leader_but_with_force_utf8 (line 463) | def test_init_with_no_leader_but_with_force_utf8(self): method test_init_with_leader (line 476) | def test_init_with_leader(self): method test_init_with_leader_and_force_utf8 (line 489) | def test_init_with_leader_and_force_utf8(self): function suite (line 503) | def suite(): FILE: test/test_utf8.py class MARCUnicodeTest (line 13) | class MARCUnicodeTest(unittest.TestCase): method test_read_utf8 (line 14) | def test_read_utf8(self): method test_copy_utf8 (line 24) | def test_copy_utf8(self): method test_combining_diacritic (line 44) | def test_combining_diacritic(self): function suite (line 51) | def suite(): FILE: test/test_writer.py class JSONWriterTest (line 16) | class JSONWriterTest(unittest.TestCase): method test_close_true (line 17) | def test_close_true(self): method test_close_false (line 28) | def test_close_false(self): method test_writing_0_records (line 40) | def test_writing_0_records(self): method test_writing_empty_record (line 55) | def test_writing_empty_record(self): method test_writing_1_record (line 77) | def test_writing_1_record(self): method test_writing_3_records (line 123) | def test_writing_3_records(self): class MARCWriterTest (line 226) | class MARCWriterTest(unittest.TestCase): method test_write (line 227) | def test_write(self): method test_close_true (line 248) | def test_close_true(self): method test_close_false (line 259) | def test_close_false(self): class TextWriterTest (line 272) | class TextWriterTest(unittest.TestCase): method test_writing_0_records (line 273) | def test_writing_0_records(self): method test_writing_1_record (line 286) | def test_writing_1_record(self): method test_writing_3_records (line 307) | def test_writing_3_records(self): method test_writing_empty_record (line 350) | def test_writing_empty_record(self): method test_close_true (line 365) | def test_close_true(self): method test_close_false (line 376) | def test_close_false(self): class XMLWriterTest (line 389) | class XMLWriterTest(unittest.TestCase): method test_writing_0_records (line 390) | def test_writing_0_records(self): method test_writing_empty_record (line 405) | def test_writing_empty_record(self): method test_writing_1_record (line 425) | def test_writing_1_record(self): method test_writing_3_records (line 456) | def test_writing_3_records(self): method test_close_true (line 519) | def test_close_true(self): method test_close_false (line 530) | def test_close_false(self): function suite (line 543) | def suite(): FILE: test/test_xml.py class XmlTest (line 13) | class XmlTest(unittest.TestCase): method test_map_xml (line 14) | def test_map_xml(self): method test_multi_map_xml (line 23) | def test_multi_map_xml(self): method test_parse_to_array (line 32) | def test_parse_to_array(self): method test_xml (line 56) | def test_xml(self): method test_strict (line 83) | def test_strict(self): method test_xml_namespaces (line 87) | def test_xml_namespaces(self): method test_bad_tag (line 105) | def test_bad_tag(self): function suite (line 110) | def suite():