473,698 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSV like file format featured recently in Daily Python URL?

I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month or
two.

The format was ASCII with a multiline header defining types for the
comma seperated column data below. It may have had the capability to
store multiple tables in one file. There was news on the homepage that
an alternate 'no data here' syntax was also supported.

An example file had vaguely this structure:

columnname as datatype
columnname as datatype
columnname as datatype
columnname as datatype

data,data,data, data
data,"other data",data,data
data,data,"",da ta

Can anyone remember this file format/python module?

With thanks

Alex

Oct 7 '05 #1
4 1737
Alex Willmer wrote:
I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month or
two.


http://www.netpromi.com/kirbybase.html ?

</F>

Oct 7 '05 #2
On Fri, 2005-10-07 at 18:56 +0200, Fredrik Lundh wrote:
Alex Willmer wrote:
I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month or
two.


http://www.netpromi.com/kirbybase.html ?


No I don't think that was it. Although KirbyBase looks like a nice
project, particularly the alternative to SQL it uses to specify queries.

I remember the webpage presenting the format as fairly established and
in active use as an export/import medium, the python module was a
binding to an existing library. It's very possible I've combined the
memories of KirbyBase (for instance) and HDF. My recollection is to say
the least, foggy.

Thankyou for replying and thankyou for Daily Python-URL. I'll put this
on a backburner for now. I may remember it or come across it again by
fortune.

Alex

Oct 8 '05 #3
EP
> From: Alex Willmer <al**@moreati.o rg.uk> inquired
I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month
or
two.

The format was ASCII with a multiline header defining types for the
comma seperated column data below. It may have had the capability to
store multiple tables in one file. There was news on the homepage that
an alternate 'no data here' syntax was also supported.

An example file had vaguely this structure:

columnname as datatype
columnname as datatype
columnname as datatype
columnname as datatype

data,data,data, data
data,"other data",data,data
data,data,"",da ta

Was it something like ARFF? http://www.cs.waikato.ac.nz/~ml/weka/arff.html

Google "ARFF Python": http://www.google.com/search?q=arff+python

-----------------------------------------------------

% 1. Title: Iris Plants Database
%
% 2. Sources:
% (a) Creator: R.A. Fisher
% (b) Donor: Michael Marshall (MA**********@i o.arc.nasa.gov)
% (c) Date: July, 1988
%
@RELATION iris

@ATTRIBUTE sepallength NUMERIC
@ATTRIBUTE sepalwidth NUMERIC
@ATTRIBUTE petallength NUMERIC
@ATTRIBUTE petalwidth NUMERIC
@ATTRIBUTE class {Iris-setosa,Iris-versicolor,Iris-virginica}
The Data of the ARFF file looks like the following:

@DATA
5.1,3.5,1.4,0.2 ,Iris-setosa
4.9,3.0,1.4,0.2 ,Iris-setosa
4.7,3.2,1.3,0.2 ,Iris-setosa
4.6,3.1,1.5,0.2 ,Iris-setosa
5.0,3.6,1.4,0.2 ,Iris-setosa
5.4,3.9,1.7,0.4 ,Iris-setosa
4.6,3.4,1.4,0.3 ,Iris-setosa
5.0,3.4,1.5,0.2 ,Iris-setosa
4.4,2.9,1.4,0.2 ,Iris-setosa
4.9,3.1,1.5,0.1 ,Iris-setosa
Lines that begin with a % are comments. The @RELATION, @ATTRIBUTE and @DATAdeclaratio ns are case insensitive.

---------------------------------------------------------------------------------------------------------

Oct 8 '05 #4
On Thu, 2005-10-06 at 07:44 -0800, EP wrote:
Was it something like ARFF? http://www.cs.waikato.ac.nz/~ml/weka/arff.html
Yes that was it thankyou. Although it would seem there isn't a general
python module, rather a Cookbook script to perform conversion to SQL. I
must have confused ARFF with HDF.
Google "ARFF Python": http://www.google.com/search?q=arff+python


Curiously, when I just performed that search, this thread was on the
first page of results as a supplemental result.

Oct 8 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1657
by: beliavsky | last post by:
Google has started a site Google Code http://code.google.com/ to showcase Open Source software, and the first featured project is PyGoogle, a Python module wrapper for the Google Web APIs. Also mentioned is goopy/functional, a library that brings functional language attributes to Python.
4
2947
by: Byron | last post by:
Hi, I need to remove some items from a Javascript drop down menu coded by someone else. The menu is contained within a single .js file. I'm not very fluent in javascript, but I know what it looks like and can usually edit pre-existing code effectively. When I open this particular .js file in either Dreamweaver (MX) or notepad, even if I rename the extension, the code has no line breaks and the part of it that writes the menu's html is...
4
1485
by: Simon | last post by:
Hi, My problem is as such. I receive daily log files that arrive on our server every day with the following format: mmddyyyy.xls The problem is that these xls files are really tab delimeted files and when I need to import them I receive error messages from MS Access stating that these files are in incorrect format.
24
2272
by: Joseph Geretz | last post by:
Up to this point, our application has been using Windows File Sharing to transfer files to and from our application document repository. This approach does not lend itself toward a secure environment and so we are in the process of imposing a WebService gateway between our application client and the repository. (As a starting point, the WebService won't be a richly featured application server; business rules are still implemented in the...
1
1702
by: friedmud | last post by:
Has anyone used PyPar ( http://datamining.anu.edu.au/~ole/pypar/ ) recently? I _do_ want to do MPI (not BSP) but I don't need any advanced MPI things... and PyPar seemed just up my ally... but alas it doesn't compile: ########### python setup.py --prefix=$MY_PREFIX cc: unrecognized option '-showme'
5
3327
by: amit.uttam | last post by:
Hey everyone, I've recently jumped big time into python and I'm working on a software program for testing automation. I had a question about proper logging of output. What I would like is: 1. a function syslog (to log output to log file only) 2. a function stdout (to log output to stdout only) 3. a function sslog (to log output to both log and stdout)
6
4443
by: ssharpjr | last post by:
Hi Guys, I'm new to Python (mostly) and I'm wanting to use it for a new project I'm faced with. I have a machine (PLC) that is dumping its test results into a fixed- length text file. I need to pull this data into a database (MySQL most likely) so that I can access it with Crystal Reports to create daily reports for my engineers.
0
179
by: Edwin.Madari | last post by:
here is a working code snippet to read from MySQL db. python tutorial has examples of reading from files. put them together to do your task. =================================================== import MySQLdb con = MySQLdb.connect(host='127.0.0.1', port=4321, user='joe', passwd='shmoe', db='tst') cursor = con.cursor() sql = 'select * from YOUR_TABLE'
0
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8904
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.