Hello,
Go for Optparse.. Look at below docs on how to use it.
http://pymotw.com/2/optparse/
Regards,
DJ
On Thu, Oct 9, 2014 at 5:50 PM, wrote:
> Hi,
>
> I need to develop a python CLI framework.
>
> For example if i need to set an ip address in linux:
>
> ifconfig eth0 172.16.25.125
>
> I sho
Hello,
I am intermediate to python and i am familier with OOP, but sometime i lost
some where looking at OOP in class and objects :(
I am looking at https://github.com/pulp/pulp ..
basically it uses okaara to generate CLI and calls API.
so for example if i run "pulp-admin -u admin -p admi
Hello Experts,
I have requirement, like i want to use below command in python script.
--username --password
now my requirement is i want to write some class so i can re-use "
--username --password " part via importing as module
or class .. and re-use that in other module or classes .. so
Hello,
I am facing some issue when copying or moving file
f=open('/tmp/file1')
s=open('/tmp/file2')
for line in f:
if 'match' not in line:
s.write(line)
import shutil
shutil.move(s, f)
With above prog I am getting error
TypeError: coercing to Unicode: need sting or buffer, file found
W
Hello Guys,
I am starting new project on github for rpm spec file creation .. currently
repository is empty and i am looking for ideas from the people who are
experts in creating rpms for different applications
please share your ideas to me .. . currently what i know is i can have some
templ
t; On 11/27/2013 03:28 AM, Amit Saha wrote:
> > On Wed, Nov 27, 2013 at 1:39 AM, Unix SA wrote:
> >>
> >>> Sounds to me more like he is looking to package some other in house
> >>> software, as opposed to packaging python specific libraries, etc.
mething else for Redhat Linux rpm creation do
let me know.
Regards,
DJ
On Mon, Nov 25, 2013 at 10:57 PM, Andrew Heagle wrote:
> On Mon, Nov 25, 2013 at 9:17 AM, Unix SA wrote:
>
>> Hello guys,
>>
>> Probably not right forum but I thought I should get some suggestio
that is that any tool which can help to create SPEC file ?//
i am aware of tito.. which can help me for building RPM.. but before that i
am looking for tool to create spec file.
Regards,
DJ
On Mon, Nov 25, 2013 at 10:12 PM, Terry Reedy wrote:
> On 11/25/2013 9:17 AM, Unix SA wr
Hello guys,
Probably not right forum but I thought I should get some suggestions.
I am looking for some tool written in python which can help users to create
rpm spec files and later help to build rpms, this will be for users who are
not aware of what spec file is and how to.create rpm.
Anyone k