libxml2 has schema support
I am new to xml and python. I have to choose a package which has schema support. I like to use libxml2 but does libxml2 has schma support ? -- http://mail.python.org/mailman/listinfo/python-list
libxml2 and mindom
I am parsing xml file using libxml2 and for navigating the document object tree I want to use minidom. Is it possible. Can anyone give me any example for the same ? -- http://mail.python.org/mailman/listinfo/python-list
Re: libxml2 and mindom
Hi Paul, I checked for it and here are my comments on it: libxml2dom has Alpha release . So there may be some bugs in it. In our project we cant take risk to move back after deciding for one. Thanks for your reply. I checked some other options like libgdome2. Can you make some comments on that? The reason for using minidom is its simplicity for traversing document tree. And also I want schema support in the package along with minidom support. Can you provide any other option(package) which would suffice this requirement. As far as I know no other package instead of libxml2 provides schema support. Am I right. Please clear me. I would be thankful to you -- http://mail.python.org/mailman/listinfo/python-list
Which package to choose?
Hi pupil, please let me know which package to choose for xml processing in python . Here are my requirements "I want a package which provides me schema support along with minidom support. According to my findings, "libxml2" provides schema support but it needs either libxml2 or libgdome2 for minidom support. But these pacakges are not well tested exp libxml2dom. Also, libxml2 is not so much pythonic i,e more based and used with C. So there is lack of documentation for that and I am new to that. I need proper documentation" Other option I can go for some "Pyxml or 4suite". Which one is more suited to xml standards? And Is there any independent package available for schema support which I can use along with it? the platform I am using Linux as my platform. Hope you guys clear me. :-) Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: libxml2 has schema support
Thanks, pupil I get my answer for this. Closed.. -- http://mail.python.org/mailman/listinfo/python-list
Re: Which package to choose?
Thanks for replying. Can you tell me how stable is this package ? I mean to say how upto the standards it is. And also after seeing into the details I concluded that it also doesnot provide minidom support. Can I use libxml2dom or libgdome2 with it ? :-) Thanks ... -- http://mail.python.org/mailman/listinfo/python-list
Re: Which package to choose?
Thanks for replying. Can you tell me how stable is this package ? I mean to say how upto the standards it is. And also after seeing into the details I concluded that it also doesnot provide minidom support. Can I use libxml2dom or libgdome2 with it ? :-) Thanks ... -- http://mail.python.org/mailman/listinfo/python-list
new style and classic style classes ?
Hello, Please put some light on, What are new style classes and classic style classes in python. The basic differences in them. And How can I decide to choose one. -- http://mail.python.org/mailman/listinfo/python-list
Desc of packages for XML processing
There are various packages availaible for XML processing using python. So which to choose and when. I summarized some of the features, advantages and disadvantages of some packages int the following text. Have a look to it. May this get out of the dillema of choice. Here we go: OPTIONS = - libxml2 - lxml - Pyxml - 4Suite DESCRIPTION = --- libxml2 --- A quote by Mark Pilgrim: "Programming with libxml2 is like the thrilling embrace of an exotic stranger. It seems to have the potential to fulfill your wildest dreams, but there's a nagging voice somewhere in your head warning you that you're about to get screwed in the worst way." Features: = - Namespaces in XML - XPath, Xpointer, XInclude XML Base - XML Schemas Part 2 : DataTypes - Relax NG - SAX: a SAX2 like interface and a minimal SAX1 implementation compatible with early expat versions - NO DOM: It provide support for DOM to some extent BUT it does not implement the API itself, gdome2 . - It is written in plain C, making as few assumptions as possible, and sticking closely to ANSI C/POSIX for easy embedding. - Platform: Linux/Unix/Windows Advantages == - Standards-compliant XML support. - Full-featured. - Actively maintained by XML experts. - fast. fast! FAST! - Stable. Disadvantages = This library already ship with Python bindings, but these Python bindings have someproblems: - Very low level and C-ish (not Pythonic). - Underdocumented and huge, you get lost in them. - UTF-8 in API, instead of Python unicode strings. - Can cause segfaults from Python. - Have to do manual memory management. As the library calls are more or less an exact mapping on the C API, and thus require to think about memory management For Those who want ot go for DOM API: Packages for DOM - gdome2: gdome2 provides support for dom on top of libxml2.C-Based (http://gdome2.cs.unibo.it/) - libxml2dom: Other option availabile is libxml2dom. (http://cheeseshop.python.org/pypi/libxml2dom/0.3.3) - libxml_domlib:libxml_domlib is a Python extension module that enables you to use the DOM interface to libxml2 (http://www.rexx.com/~dkuhlman/libxml_domlib.html) Resources == - http://xmlsoft.org/index.html - http://codespeak.net/lxml/intro.html lxml - lxml follows the ElementTree API as much as possible, building it on top of the native libxml2 tree. Features - lxml provides all above features as of libxml2 but using ElementTreet API. Advantages == - Pythonic API. - Documented. - Use Python unicode strings in API. - Safe (no segfaults). - No manual memory management Disadvantages == - No DOM support as in libxml2. - It is in its initial release (latest is lxml 0.7) Resources = - http://codespeak.net/lxml/ -- Pyxml -- Features = - xmlproc: a validating XML parser. - Expat: a fast non-validating parser. - sgmlop: a C helper module that can speed-up xmllib.py and sgmllib.py by a factor of 5. - PySAX: SAX 1 and SAX2 libraries with drivers for most of the parsers. - 4DOM: A fully compliant DOM Level 2 implementation - pulldom: a DOM implementation that supports lazy instantiation of nodes. - marshal: a module with several options for serializing Python objects to XML Advantages == - A lot of documentation is availaible and almost all resources and examples based on it. Disadvantages = - No Schema support Pacakges for Schema(For those who want schema support too) === XSV: currently in progress, and provides XML schema Part 1: Structures. Dependent on some other pacakage PyLTXML (http://www.ltg.ed.ac.uk/~ht/xsv-status.html) --- 4Suite --- Features: = - XML,XSLT,XPath,DOM,XInclude,XPointer,XLink,XUpdate,RELAX NG,XML Catalogs - Platform: Posix, Windows Advantages - As, this provides Relax NG: RELAX NG, a simple schema language for XML,
Re: libxml2 and mindom
Hi Paul, Now I am fixed with libxml2 and libxml2dom. but can you tell me to what extent libxml2dom supports minidom. because I want minidom for traversing. Where I can find the documentation of libxml2dom. -- http://mail.python.org/mailman/listinfo/python-list
problem with libxml2dom
Hi I am using libxml2dom package for DOM support in libxml2. There are some test programs in the package when I try to run that samples it give me following error: Traceback (most recent call last): File "prettyprint.py", line 7, in ? d = libxml2dom.parse(sys.argv[1]) File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line 472, in parse return parseFile(stream_or_string, html) File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line 484, in parseFile return Document(Node_parseFile(filename, html)) File "/usr/lib/python2.2/site-packages/libxml2dom/macrolib/macrolib.py", line 431, in parseFile libxml2mod.xmlCtxtUseOptions(context, XML_PARSE_NOERROR | XML_PARSE_NOWARNING | XML_PARSE_NONET) AttributeError: 'module' object has no attribute 'xmlCtxtUseOptions' This error comes to all that examples where libxml2dom.parse() is called. Please help me and let me know how to solve this. -- http://mail.python.org/mailman/listinfo/python-list
problems with libxml2dom
Hi, I am working with libxml2dom package for having DOM support with libxml2. There are some test examples are given along with the package but when I try to run that, it gives me following error: Traceback (most recent call last): File "namespaces.py", line 23, in ? document = libxml2dom.parse("test_ns.xml") File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line 472, in parse return parseFile(stream_or_string, html) File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line 484, in parseFile return Document(Node_parseFile(filename, html)) File "/usr/lib/python2.2/site-packages/libxml2dom/macrolib/macrolib.py", line 431, in parseFile libxml2mod.xmlCtxtUseOptions(context, XML_PARSE_NOERROR | XML_PARSE_NOWARNING | XML_PARSE_NONET) AttributeError: 'module' object has no attribute 'xmlCtxtUseOptions' This error comes to all that examples where libxml2dom.parse() is get called. Is there something wrong with the package OR I am wrong somewhere . please let me know. -- http://mail.python.org/mailman/listinfo/python-list
libxml2dom problems
I am using libxml2dom but having problem when parsing. It gives me the following error: File "exlibxml2dom.py", line 4, in ? document = libxml2dom.parse("moc.xml") File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line 472, in parse return parseFile(stream_or_string, html) File "/usr/lib/python2.2/site-packages/libxml2dom/__init__.py", line 484, in parseFile return Document(Node_parseFile(filename, html)) File "/usr/lib/python2.2/site-packages/libxml2dom/macrolib/macrolib.py", line 431, in parseFile libxml2mod.xmlCtxtUseOptions(context, XML_PARSE_NOERROR | XML_PARSE_NOWARNING | XML_PARSE_NONET) AttributeError: 'module' object has no attribute 'xmlCtxtUseOptions' LET me know what is the problem with this ... -- http://mail.python.org/mailman/listinfo/python-list
Re: libxml2dom problems
Thanks .. frederik. The reason for posting the problem 2 times is that there might be some problem yesterday with the google groups server . After posting the mesage I cant see it on the board. That's why I posted again. anyway thanks for the help -- http://mail.python.org/mailman/listinfo/python-list
Problem installing libxml2dom on windows
I had installed libxml2 for python (libxml2-python-2.6.22.win32-py2.4) on WINDOWS. For having dom support I am installing libxml2dom (0.3). My python version on win is 2.4 but when I give run the install as: python setup.py install I get following error: Traceback (most recent call last): File "setup.py", line 5, in ? import libxml2dom File "C:\Python24\libxml2dom-0.3\libxml2dom\__init__.py", line 9, in ? from libxml2dom.macrolib import * File "C:\Python24\libxml2dom-0.3\libxml2dom\macrolib\__init__.py", line 9, in ? from libxml2dom.macrolib.macrolib import * File "C:\Python24\libxml2dom-0.3\libxml2dom\macrolib\macrolib.py", line 8, in ? import libxml2mod ImportError: No module named libxml2mod --- It cant find libxml2mod package. I suppose it installs with libxml2. Am I right? >From where I will get this package for WINDOWS? Plz, tell me the site. I tried googling but it didnt give me any links for download. Can any one help. -- http://mail.python.org/mailman/listinfo/python-list
Re: Problem installing libxml2dom on windows
I already downloaded the latest package(libxml2-python-2.6.22.win32-py2.4.exe ) for libxml2 and installed it. I want a package for "libxml2mod" , because that only package is not getting find. The link you had specifed I already been there. Only libxml2 for python with win32 are available there. Can you please be more specific about libxml2mod? -- http://mail.python.org/mailman/listinfo/python-list
Re: Problem installing libxml2dom on windows
I also tried installing some different package for dom libxml_domlib(1.2a) on windows with python 2.4 and libxml2(2.6.22) but in this case it gives some differnet error while build only, The error is as -- running build running build_ext building 'libxml_domlib' extension error: Python was built with version 7.1 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. --- What is this. Plz help -- http://mail.python.org/mailman/listinfo/python-list
Re: Problem installing libxml2dom on windows
I also tried installing some different package for dom libxml_domlib(1.2a) on windows with python 2.4 and libxml2(2.6.22) but in this case it gives some differnet error while build only, The error is as -- running build running build_ext building 'libxml_domlib' extension error: Python was built with version 7.1 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. --- libxml_domlib available at: http://www.rexx.com/~dkuhlman/libxml_domlib.html What is this. Plz help -- http://mail.python.org/mailman/listinfo/python-list
libxml_domlib installation in linux : problems
am installing libxml_domlib(1.2a) on linux but when I build it it searches for includes of libxml2 in folder /usr/local/include/libxml2 but libxml2 have includes under /usr/include/libxml2. For this reason it gives me following error: -- gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -I. -I/usr/local/include/libxml2 -I/usr/include/python2.2 -c libxml_domlib.c -o build/temp.linux-i686-2.2/libxml_domlib.o libxml_domlib.c:32:30: libxml/xmlmemory.h: No such file or directory libxml_domlib.c:33:27: libxml/parser.h: No such file or directory -- In makefile I changed the places for libs and given the correct path for includes of libxml2 under INCL_DIR instead of that its picking up /usr/local/include/libxml2 and searches headers there . the makefile(afer chages) I am using is following: --- PYTHON_DIR=/usr/include/python2.2/ INCL_DIRS=-I/usr/include/libxml2/ \ -I${PYTHON_DIR} CFLAGS=-c -g ${INCL_DIRS} -Wall -fPIC #LINKFLAGS=-shared -L/usr/local/lib/python2.1/config/ -lpython2.1 \ # -L/usr/local/lib -lxml2 -lz -lm -lz LINKFLAGS=-shared -L/usr/lib/python2.2/config/ -lpython2.2 \ -L/usr/lib -lxml2 -lm OBJS=libxml_domlib.o domlib_node.o domlib_doc.o \ domlib_ns.o domlib_attrs.o libxml_domlib.so: ${OBJS} gcc ${LINKFLAGS} ${OBJS} -o libxml_domlib.so libxml_domlib.o: libxml_domlib.c domlib_node.h gcc ${CFLAGS} libxml_domlib.c -o libxml_domlib.o domlib_node.o: domlib_node.c domlib_node.h gcc ${CFLAGS} domlib_node.c -o domlib_node.o domlib_doc.o: domlib_doc.c domlib_doc.h gcc ${CFLAGS} domlib_doc.c -o domlib_doc.o domlib_ns.o: domlib_ns.c domlib_ns.h gcc ${CFLAGS} domlib_ns.c -o domlib_ns.o domlib_attrs.o: domlib_attrs.c domlib_attrs.h gcc ${CFLAGS} domlib_attrs.c -o domlib_attrs.o clean: rm -f ${OBJS} libxml_domlib.so --- How can I override this behaviour of inclusions of header? and Also is there any version of libxml_domlib availaible for windows. ? Can anyone help -- http://mail.python.org/mailman/listinfo/python-list
What PyXml provides
Python itself provides parsers for xml and Dom support. So, if I install pyxml what additional advantage or features I will get in pyxml specially in minidom and parsers. Anyone, please provide a brirfing on this. -- http://mail.python.org/mailman/listinfo/python-list
Getting the start / end of string in regex through match objects
I want to get the start and end of all the patterns mattched in regex. I know I can get it with start() and end() fn of matched objects. But re.search() return the match object of first matching regex in the string. I want all match objects in that string Here is the string : tmplstr = """ ${name} ${list:parentlst} an element ${elem:parentlst} ${/list:parentlst} ${list:childlst} an element ${elem:childlst} ${/list:childlst} """ Here is the regex script: # Compile List Patterns # Start of List lstpattern_st = r"(\$\{list:([a-z]*[0-9 ]*)\})" lstpat_st = re.compile(lstpattern_st) # End of List lstpattern_end = r"(\$\{/list:([a-z]*[0-9 ]*)\})" lstpat_e = re.compile(lstpattern_end, re.I) matchgrp_st = lstpat_st.search(tmplstr) strt = matchgrp_st.start() print strt matchgrp_e = lstpat_e.search(tmplstr) end = matchgrp_e.end() print end print self.tmplstr[strt:end] I want all the start and end indices of the string but re.search() returns the first regex met in the string. re.match() also wont work because it search in the begining. Can anyone help me in getting the start and end indices of all. OR can provide any other solution instead of this -- http://mail.python.org/mailman/listinfo/python-list
Re: Getting the start / end of string in regex through match objects
Thanks frederik, :) -- http://mail.python.org/mailman/listinfo/python-list
Limiting the size of List and making it Homogeneous
Is it possible to limit the size of list in python. I want to make list of 5 elements. How can I achieve this thing in python. And one more thing can we declare list to store elements of same type as in c, C++ we can declare an array which can have 5 elements of type int. C, C++: int intarr[5] How can I achieve this kind of behavior ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Parsing Baseball Stats
Frederic, Thanks for posting the solution. I used the original solution you posted and it worked beautifully. Paul, I understand your concern for the site's TOS. Although, this may not mean anything, the reason I wanted this "parser" was because I wanted to get the Advanced, and Translated Stats for personal use. I don't have any commercial motives but play with baseball stats is my hobby. The site does allow one to download stuff for personal use, which I abide by. Also, I am only looking to get the aforementioned stats for some players. The site has player pages for over 16,000 players. I think it would be unfair to the site owners if I went to download all 16,000 players using the script. In the end, they might just move the stats in to their premium package (not free) and then I would be really screwed. So, I understand your concerns and thank you for posting them. Ankit Anthra Norell wrote: > - Original Message - > From: "Paul McGuire" <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Wednesday, July 26, 2006 1:01 AM > Subject: Re: Parsing Baseball Stats > > > > "Anthra Norell" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > snip > > > > > Frederic - > > > > HTML parsing is one of those slippery slopes - or perhaps "tar babies" might > > be a better metaphor - that starts out as a simple problem, but then one > > exception after the next drags the solution out for dys. Probably once > > or twice a week, there is a posting here from someone trying to extract data > > from a website, usually something like trying to pull the href's out of some > > snip > > > So what started out as a little joke (microscopic, even) has eventually > > touched a nerve, so thanks and apologies to those who have read this whole > > mess. Frederic, SE looks like a killer - may it become the next regexp! > > > > -- Paul > > > > Paul, > > A year ago or so someone posted a call for ideas on encoding passwords for > his own private use. I suggested a solution using > python's random number generator and was immediately reminded by several > knowledgeable people, quite sharply by some, that the > random number generator was not to be used for cryptographic applications, > since the doc specifically said so. I was also given good > advice on what to read. > I thought that my solution was good, if not by the catechism, then by > the requirements of the OP's problem which I considered > to be the issue. I hoped the OP would come back with his opinion, but he > didn't. > Not then and there. He did some time later, off list, telling me > privately that he had incorporated my solution with some > adaptations and that it was exactly what he had been looking for. > > So let me pursue this on two lines: A) your response and B) the issue. > > A) I thank you for the considerable time you must have taken to explain > pyparse in such detail. I didn't know you're the author. > Congratulations! It certainly looks very professional. I have no doubt that > it is an excellent and powerful tool. > Thanks also for your explanation of the TOS concept. It isn't alien to > me and I have no problem with it. But I don't believe > it means that one should voluntarily argue against one's own freedom, barking > at oneself with the voice of the legal watchdogs out > there that would restrict our freedom preemptively, getting a tug on the > leash for excessive zeal but a pat on the head nontheless. > We have little cause to assume that the OP is setting up a baseball > information service and have much cause to assume that he is > not. So let us reserve the benefit of the doubt because this is what the > others do. And work by plausible assumption--necessarily, > because the realm of certainty is too small an action base. > SE is not a parser. It is a stream editor. I believe it fills a gap, > handling a certain kind of problem very gracefully while > being particularly easy to use. Your spontaneous reaction of horror was the > consequence of a misinterpretation. The Tag_Stripper's > argument ('"~<.*?>~= " "~<[^>]*~=" "~[^<]*>~=") is not the frightful > incarnation of a novel, yet more arcane regular expression > syntax. It is simply a string consisting of three very simple expressions: > '<.*?>', '<[^>]*' and '[^<]*>'. They could also be > written as or-ed alternatives: '<.*?>|<[^>]*|[^<]*>'. The tildes brace the > regex to
exception given by minidom.parse
I want to catch the exception given by minidom.parse. Please let me know what are the exceptions raised by minidom.parse() esp if some given file is not xml -- http://mail.python.org/mailman/listinfo/python-list
Creating Table using Tkinter
Hi guys i need to make a table to store a certain data using Tkinter..I have searched on the group but i have not been able to find a solution that would work for me..The thing is that i want my table to be scrollable both horizontally and vertically and i also want to transmit the data from the table serially to a microcontroller so i also need to make sure that i am able to read all the data individually..I am writing my code on Windows..my table is dynamic that is the number of columns are fixed but the number of rows can vary that would depend on the user..Initially i ask him about the number of rows...Waiting for your replies.. Regards Ankit Anand -- http://mail.python.org/mailman/listinfo/python-list
Re: What text editor is everyone using for Python
On May 26, 6:04 pm, J Kenneth King wrote: > Lacrima writes: > > I am new to python. > > And now I am using trial version of Wing IDE. > > But nobody mentioned it as a favourite editor. > > So should I buy it when trial is expired or there are better choices? > I will suggest u to use TEXTPAD 4 on windows and Emacs or Vi or RocketEdit on your Linux machine -- http://mail.python.org/mailman/listinfo/python-list
Re: which database is suitable for small applications
Hi Kalyan... If your application does not require you to add very heavy data then you can also use flat files to do your stuff. Its always a better to use Databases but given your low level use and newness to python... i would advise you to take up flat files instead. store your data there and access it.. simple! ANkit -- http://mail.python.org/mailman/listinfo/python-list
Flash Decoder
Hi everyone,i wanted to build a flash decoder using python can somebody tell me which library to use and what steps should i follow to make a flash(video) decoder?By a decoder i mean that i need to display all the pixel values of each frame.Waiting for your replies. Regards Ankit Anand -- http://mail.python.org/mailman/listinfo/python-list
Re: Flash Decoder
Thanks for replying guys but could you be a little more specific like in terms of steps i shd follow to make the decoder and also how is ffmpeg/libffmpeg going to help.. Regards Ankit Anand -- http://mail.python.org/mailman/listinfo/python-list
Compiling and Linking pre-built Windows Python libraries with C++ files on Linux for Windows
Hi, This is a very specific question. I am trying to figure out whether or not I can use pre-built python libraries and headers on Windows in a MinGW build on Linux. Essentially I have some python and C++ code which interface via cython and pybind. I want to build a self contained C++ binary for Windows with the MinGW compiler that runs on Linux. For both Cython and PyBind, they need to compile with the python headers and link against the python DLL in order to run on Windows. I know that the python DLL specifically are compiled with the MSVC compiler, however since it is in C, the ABI between the DLL should be compatible with MinGW, and I should be able to import and link against it. My question is will this work, or will there be some other problem that I might run into. I am using python 3.7 by the way for this. Let me know what you think, Thanks :) Ankit *Ankit Agarwal* Software Engineer an...@applied.co +1 630.506.4914 Applied Intuition, Inc. <https://applied.co> blog.applied.co -- https://mail.python.org/mailman/listinfo/python-list
Re: # of Months between two dates
On Sunday, August 8, 2010 at 11:46:51 PM UTC+5:30, MRAB wrote: > Greg Lindstrom wrote: > > I work for a company that processes claims for the health care industry > > (Novasys Health, recently purchased by Centene Corp). My current > > assignment has me writing a routine to compute insurance premiums. One > > of the requirements is to determine how many months a policy has been in > > effect. The datetime module will give me the number of days but, with > > months having different lengths, that does not do me much good. I've > > looked in the calendar library but didn't see anything there, either. > > > > I've written a function to return the months between date1 and date2 but > > I'd like to know if anyone is aware of anything in the standard library > > to do the same? For bonus points, does anyone know if postgres can do > > the same (we use a lot of date/time funcitons in postgres, already, but > > didn't see this problem addressed). > > > [snip] > A simple expression is: > > diff = (current_year - start_year) * 12 + (current_month - start_month) > > According to this, if a policy started on 31 July 2010, then on 1 August > 2010 it has been in effect for 1 month. Is this reasonable? It depends! > > It's probably better to write the function yourself according to what > makes sense in your use-case, and document its behaviour clearly. Thanks for that answer -- https://mail.python.org/mailman/listinfo/python-list
Unable to use python 3.5
Hi there, I am maters student in India, I have installed python 3.5 in my windows 10 64bit machine. Everything works fine except package installing. When in use “pip install numpy” is shows unable to find *‘vcvarsall.bat’* I don’t know how to fix it. I tried several things nothing works. Please help me. Thank You. Ankit Deshmukh -- *Ankit Deshmukh* IIT Hyderabad P: 9581540937 || E:ankit 7a...@gmail.com -- *Simplicity is the ultimate sophisticationLeonardo da Vinci* -- https://mail.python.org/mailman/listinfo/python-list
PIL Query
Hi I was using the PIL. I found it pretty useful. I was wondering if you could please let me know, whether I could change the image size. What I mean is if suppose I have 100 points having the same latitude and longitude, the point on the map appears (for instance as a red circle). My question to you is, can I change the radius of this circle? I was also trying to figure out where in the code I can change the location where the url is served from. So instead of serving the images form http://localhost/classic/4/4,5.png how do I change it to http://localhost/username/classic/4/4,5.png where username is taken from the database. & my last question is, is it possible that I just give the PIL the latitude,longitude and the no. of points having the same latitude and longitude[i.e. intensity], instead of repeating the lat & long coordinates. Your help will be greatly appreciated Thanks Ankit -- http://mail.python.org/mailman/listinfo/python-list