473,748 Members | 10,028 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 1741
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
1659
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
2950
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
1488
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
2284
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
1706
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
3330
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
4448
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
8984
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9530
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...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
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
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
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...
0
4593
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...
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.