Projects tagged ‘csv’ and ‘parser’


[11 total ]

2 Users
 

ZFileReader on SourceForge: a Java (1.4+) flat file parser that handles CSV, fixed length and custom delimiters. The formats are configured in XML, it is fast and released under Apache license 2.0. ... [More] Substrings in a fixed width parse can be daunting to deal with when trying to analyze what existing code is doing, and what about when you have no comments... We also provide delimited file parsing; works with any delimiter / qualifier, multiline records, delimiter or qualifier allowed in column value. [Less]
Created over 3 years ago.

2 Users
 

FlatPack came out of the frustration of having to mix file parsing logic with business logic. FlatPack on SourceForge: a Java (1.4+) flat file parser that handles CSV, fixed length and custom ... [More] delimiters. The formats are configured in XML, it is fast and released under Apache license 2.0. Substrings in a fixed width parse can be daunting to deal with when trying to analyze what existing code is doing, and what about when you have no comments... We also provide delimited file parsing; works with any delimiter / qualifier, multiline records, delimiter or qualifier allowed in column value. [Less]
Created over 2 years ago.

1 Users
 

A PHP library designed with python's csv module in mind. An object-oriented interface to fgetcsv for reading / parsing csv files as well as a way to write csv files. This library makes use of the ... [More] standard php library (SPL) in its reader. I plan to support all of the features available in python's csv module, plus a few extra goodies. [Less]
Created about 1 year ago.

0 Users

What is csvlib? It implements a few advanced features which help make your life easier when working with CSV data in Actionscript?. Here you can find a QuickStart tutorial to use csvlib. Features ... [More] of current versionFull RFC 4180 conform Multiline recordsets/field values Double and single quote enclosures Enclosed field values and commas Much more of RFC 4180 compatibility conditions Working with individual field seperator recordset delimiter quote tokens (double/single) A data-model that differentiates between data & header Simple header and data manipulation Sort data by field name or index position Searching for field values Encoding of csv objects content (header & data array) to a csv formated string (ready for send) ContactIf you have any questions or sugestions, feel free to contact me: shortybmc@gmail.com [Less]
Created 12 months ago.

0 Users

INTRODUCTIONCSV2db it is a command line Java software tool used for imoporting data from CSV files to SQL database. REQUIREMENTSJAVA Runtime 1.5+ Database JDBC driver (bundled with PostgreSQL 8+ ... [More] driver) SQL database server USAGEUnzip and run: java -jar CSV2db.jar yourfilename.csv NOTE: CSV2db boundled with PostgreSQL 8.0 JDBC driver, if you want to use other database like MySQL, Oracle e.t.c. you should put your appropriate JDBC driver in CLASSPATH variable. [Less]
Created 12 months ago.

0 Users

The tool mapps csv-files to java objects. Just annotate Java POJO objects and parse csv-files into objects. Features: - Easy usage - no xml-configurations - Type acnostic and type safe - Automatic ... [More] locale-specific conversions - Support for complex types (nested custom objects) - Extensibility - One-To-Many Relationships for multi type csv-files [Less]
Created 12 months ago.

0 Users

Simple data access object for csv files in php5.by Kazuyoshi Tlacaelel. Some featuresCellsfillCell cell value filler getCell cell fetcher hasCell checks if a coordinate is valid ... [More] HeaderscountHeaders header counter createHeaders header creator getHeaders header fetcher setHeaders header injector ColumnsappendColumn column appender fillColumn collumn data injector getColumn column fetcher hasColumn column existance checker removeColumn column remover walkColumn column walker Must see[construct] data load initialize connect header and row relationship builder getRawArray raw data as array isSymmetric data length/symmetry checker load csv file loader settings settings alterator symmetrize all rows length equalizer walkGrid grid walker RowsappendRow row appender countRows row counter fillRow fillRow getAsymmetricRows asymmetric data fetcher getRow row fetcher getRows multiple row fetcher hasRow row existance checker removeRow row remover walkRow row walker Comming sooncolumns (gets a range of columns) export (gets altered data as a csv string) url parsing grepColumn scans a column using a callback function grepRow scans a column using a callback function grepGrid scans the whole dataset using a callback function Using the package csv file name,age,skill john,13,knows magic tanaka,8,makes sushi jose,5,dances salsa php file load('my_cool.csv'); var_export($csv->connect()); ?> output array ( 0 => array ( 'name' => 'john', 'age' => '13', 'skill' => 'knows magic', ), 1 => array ( 'name' => 'tanaka', 'age' => '8', 'skill' => 'makes sushi', ), 2 => array ( 'name' => 'jose', 'age' => '5', 'skill' => 'dances salsa', ), ) Do not read this! Please DontReadThis for examples documentation information deprecations more... [Less]
Created about 1 year ago.

0 Users

IntroductionThis is a library for parsing text files. The records could be comma delimited, tab delimited or delimited with any set of characters. The csv_parser class is used to parse text files ... [More] to extract records and fields. We are making the following assumptions : The record terminator is only one character in length. The field terminator is only one character in length. The fields are enclosed by single characters, if any. The parser can handle documents where fields are always enclosed, not enclosed at all or optionally enclosed. When fields are strictly all enclosed, there is an assumption that any enclosure characters within the field are escaped by placing a backslash in front of the enclosure character. --- The CSV files can be parsed in 3 modes. (a) No enclosures (b) Fields always enclosed. (c) Fields optionally enclosed. For option (c) when the enclosure character is optional, if an enclosure character is spotted at either the beginning or the end of the string, it is assumed that the field is enclosed. The csv_parser::init() method can accept a character array as the path to the CSV file. Since it is overloaded, it can also accept a FILE pointer to a stream that is already open for reading. The set_enclosed_char() method accepts the field enclosure character as the first parameter and the enclosure mode as the second parameter which controls how the text file is going to be parsed. The source documentation is available here http://www.israelekpo.com/csv-parser-documentation/ Library InstallationDecompress the tarball tar -zxvf csv_parser-x.x.tar.gz cd csv_parser Configure, compile and install ./configure make make all install Linking and Compiling Source Programsg++ -Wall -O2 -g csv_parser-config --cxxflags --libs example.cpp -o example Example Usage #include /** * Example Usage of libcsv_parser++ * * These are some of the characters you may use in this program * * @li DEC is how it would be represented in decimal form (base 10) * @li HEX is how it would be represented in hexadecimal format (base 16) * * @li DEC HEX Character Name * @li 0 0x00 null * @li 9 0x09 horizontal tab * @li 10 0x0A line feed, new line * @li 13 0x0D carriage return * @li 27 0x1B escape * @li 32 0x20 space * @li 33 0x21 double quote * @li 39 0x27 single quote * @li 44 0x2C comma * @li 92 0x5C backslash */ /** * Example Program - showing usage of the csv_parser class * * In this example, we include the csv_parser header file as * * Then we declare the variables we are going to use in the program * * @li The name of the input file is "example_input.csv" * @li The field terminator is the comma character * @li The record terminator is the new line character 0x0A * @li The field enclosure character is the double quote. * * In this example we will be parsing the document as the fields are optionally enclosed. * * The first record in the CSV file will be skipped. * * Please view the source code of this file more closely for details. * * @todo Add more examples using different parsing modes and different enclosure and line terminator characters. * @toto Include an example where the filename, field_terminator char, line_terminator char, enclosure_char and other program variables are loaded from a file. * * @param int The number of arguments passed * @param argv The array of arguements passed to the main function * @return int The status of the program returned to the operating system upon termination. * * @see csv_parser * * @author Israel Ekpo */ int main(int argc, char ** argv) { // const char * filename = argv[1]; /* Declare the variables to be used */ const char * filename = "example_input.csv"; const char field_terminator = ','; const char line_terminator = '\n'; const char enclosure_char = '"'; csv_parser file_parser; /* Define how many records we're gonna skip. This could be used to skip the column definitions. */ file_parser.set_skip_lines(1); /* Specify the file to parse */ file_parser.init(filename); /* Here we tell the parser how to parse the file */ file_parser.set_enclosed_char(enclosure_char, ENCLOSURE_OPTIONAL); file_parser.set_field_term_char(field_terminator); file_parser.set_line_term_char(line_terminator); unsigned int row_count = 1U; /* Check to see if there are more records, then grab each row one at a time */ while(file_parser.has_more_rows()) { unsigned int i = 0; /* Get the record */ csv_row row = file_parser.get_row(); /* Print out each column in the row */ for (i = 0; i < row.size(); i++) { printf("COLUMN %02d : %s\n", i + 1U, row[i].c_str()); } printf("====================================================================\n"); printf("END OF ROW %02d\n", row_count); printf("====================================================================\n"); row_count++; } return 0; } [Less]
Created 4 months ago.

0 Users

Asynchronous CSV parser for ActionScript 3.0This small library is based on the work of shortybmc: http://code.google.com/p/csvlib/ It is a thorough reimplementation of the code base, providing ... [More] true asynchronous behaviour. Goals:divide urloading, parsing, throttling into seperate & independent components true async loading behaviour, usen asynctoken build reusable asynchronous architecture [Less]
Created about 1 month ago.

0 Users

The main objective of such project is to provide an application which help creating CSV file based on a file copylib (Mainframe flat file).
Created 11 months ago.