Access lotus notes using Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sateesh

    Access lotus notes using Python

    Hi,
    Is it possible to access Lotus notes using Python? Can anyone provide me
    some pointers?

    Thanks
    Sateesh


  • Kartic

    #2
    Re: Access lotus notes using Python

    The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM:[color=blue]
    > Hi,
    > Is it possible to access Lotus notes using Python? Can anyone provide me
    > some pointers?
    >
    > Thanks
    > Sateesh
    >
    >[/color]

    Yes, you can... You need the win32all distribution installed and you can
    access Notes using the COM interface (win32com.clien t).

    Google for "Lotus Notes Python" gave the following as the first match.



    Dig around.

    Win32-perl has some nice COM examples for accessing Notes also. You can
    convert the Perl-win32 examples to Python rather easily without knowing
    much perl.

    Cheers,
    -Kartic

    Comment

    • Simon Brunning

      #3
      Re: Access lotus notes using Python

      On 5/23/05, Sateesh <sateeshkavuri@ yahoo.com> wrote:[color=blue]
      > Hi,
      > Is it possible to access Lotus notes using Python? Can anyone provide me
      > some pointers?[/color]



      --
      Cheers,
      Simon B,
      simon@brunningo nline.net,

      Comment

      • Peter Dembinski

        #4
        Re: Access lotus notes using Python

        "Sateesh" <sateeshkavuri@ yahoo.com> writes:
        [color=blue]
        > Hi,
        > Is it possible to access Lotus notes using Python? Can anyone
        > provide me some pointers?[/color]

        jython + LN Java bindings may be usable

        --

        Comment

        • Michael Ströder

          #5
          Re: Access lotus notes using Python

          Kartic wrote:[color=blue]
          > The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM:
          >[color=green]
          >> Is it possible to access Lotus notes using Python? Can anyone provide me
          >> some pointers?[/color]
          >
          > Yes, you can... You need the win32all distribution installed and you can
          > access Notes using the COM interface (win32com.clien t).[/color]

          There could be even more cross-platform programming options depending
          what "access Lotus Notes" really means for the original poster.

          Depending on configuration a Domino server might have several Internet
          protocol services for accessing Notes data (POP3, IMAP, LDAP, etc.).

          Ciao, Michael.

          Comment

          • Kartic

            #6
            Re: Access lotus notes using Python

            The Great 'Michael Ströder' uttered these words on 5/23/2005 2:43 PM:[color=blue]
            > Kartic wrote:
            >[color=green]
            >>The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM:
            >>
            >>[color=darkred]
            >>>Is it possible to access Lotus notes using Python? Can anyone provide me
            >>>some pointers?[/color]
            >>
            >>Yes, you can... You need the win32all distribution installed and you can
            >>access Notes using the COM interface (win32com.clien t).[/color]
            >
            >
            > There could be even more cross-platform programming options depending
            > what "access Lotus Notes" really means for the original poster.
            >
            > Depending on configuration a Domino server might have several Internet
            > protocol services for accessing Notes data (POP3, IMAP, LDAP, etc.).
            >
            > Ciao, Michael.[/color]


            So I guess it upto the Sateesh to tell whether he needs more information
            or not.

            Comment

            • J Correia

              #7
              Re: Access lotus notes using Python

              > >>The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM:[color=blue][color=green][color=darkred]
              > >>>Is it possible to access Lotus notes using Python? Can anyone provide[/color][/color][/color]
              me[color=blue][color=green][color=darkred]
              > >>>some pointers?[/color][/color][/color]


              This might help you get started once you've installed the win32 modules.




              Comment

              • Sateesh

                #8
                Re: Access lotus notes using Python

                Hi,
                What I am trying to do is to retrieve data from Lotus Notes Domino server
                and display the results in some specific format. I initially thought of
                doing it using Java JDBC (specifically thru JdbcDomino.jar file), but was
                not successful in getting the jar file (looks like IBM has removed the
                support for JDBC for LotusNotes).
                So now I am trying Python to get my work done. I downloaded pywin and
                installed it. I am trying ways to connect to the Domino server, but could
                not get hold of the API to do so. Also pywin itself seems to be having lots
                of bugs.

                Any help is appreciated.

                regards,
                Sateesh

                "Kartic" <removethis.kar tic.krishnamurt hy@gmail.com> wrote in message
                news:Vdrke.1084 $uu.291@newssvr 33.news.prodigy .com...[color=blue]
                > The Great 'Michael Ströder' uttered these words on 5/23/2005 2:43 PM:[color=green]
                > > Kartic wrote:
                > >[color=darkred]
                > >>The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM:
                > >>
                > >>
                > >>>Is it possible to access Lotus notes using Python? Can anyone provide[/color][/color][/color]
                me[color=blue][color=green][color=darkred]
                > >>>some pointers?
                > >>
                > >>Yes, you can... You need the win32all distribution installed and you can
                > >>access Notes using the COM interface (win32com.clien t).[/color]
                > >
                > >
                > > There could be even more cross-platform programming options depending
                > > what "access Lotus Notes" really means for the original poster.
                > >
                > > Depending on configuration a Domino server might have several Internet
                > > protocol services for accessing Notes data (POP3, IMAP, LDAP, etc.).
                > >
                > > Ciao, Michael.[/color]
                >
                >
                > So I guess it upto the Sateesh to tell whether he needs more information
                > or not.[/color]


                Comment

                • Thor Arne Johansen

                  #9
                  Re: Access lotus notes using Python

                  Sateesh wrote:[color=blue]
                  > Hi,
                  > Is it possible to access Lotus notes using Python? Can anyone provide me
                  > some pointers?
                  >
                  > Thanks
                  > Sateesh
                  >
                  >[/color]

                  NotesSQL is an ODBC driver for Notes.

                  Using NotesSQL and a python odbc connection you can use the standard
                  python db-api2 to access tables.

                  (Examples of odbc connection: mxODBC or the odbc provided by win32all)

                  HTH,

                  Thor Arne Johansen
                  Technical Director
                  Ibas AS

                  Comment

                  • jmgouzit@gmail.com

                    #10
                    Re: Access lotus notes using Python

                    try this

                    import win32com.client
                    session = win32com.client .Dispatch('Lotu s.NotesSession' )
                    session.Initial ize(r'pppppppp' )
                    db = session.GetData base('',r'ddddd ddd.nsf')
                    view = db.GetView(r'vv vvvvvv')
                    doc = view.GetFirstDo cument()
                    print doc.GetFirstIte m('iiiiii').Val ues

                    domino return string as unicode

                    Comment

                    • jm

                      #11
                      Re: Access lotus notes using Python

                      try this

                      import win32com.client
                      session = win32com.client .Dispatch('Lotu s.NotesSession' )
                      session.Initial ize(r'pppppppp' )
                      db = session.GetData base('',r'ddddd ddd.nsf')
                      view = db.GetView(r'vv vvvvvv')
                      doc = view.GetFirstDo cument()
                      print doc.GetFirstIte m('iiiiii').Val ues

                      domino return string as unicode

                      Comment

                      • Sateesh

                        #12
                        Re: Access lotus notes using Python

                        Hi,
                        Thanks very much for the input. Could you please tell me where I could get
                        the API reference for these COM classes to access Lotus Notes?

                        Thanks again
                        Sateesh
                        <jmgouzit@gmail .com> wrote in message
                        news:1116921752 .615735.187040@ g47g2000cwa.goo glegroups.com.. .[color=blue]
                        > try this
                        >
                        > import win32com.client
                        > session = win32com.client .Dispatch('Lotu s.NotesSession' )
                        > session.Initial ize(r'pppppppp' )
                        > db = session.GetData base('',r'ddddd ddd.nsf')
                        > view = db.GetView(r'vv vvvvvv')
                        > doc = view.GetFirstDo cument()
                        > print doc.GetFirstIte m('iiiiii').Val ues
                        >
                        > domino return string as unicode
                        >[/color]


                        Comment

                        • jm

                          #13
                          Re: Access lotus notes using Python

                          Lotus Domino Designer 6.5.1 Help (instaled by notesdesigner)

                          see section LotusScript/COM/OLE Classes & LotusScript Classes A-Z

                          Comment

                          • Dan Poirier

                            #14
                            Re: Access lotus notes using Python

                            Peter Dembinski <pdemb@gazeta.p l> writes:
                            [color=blue]
                            > "Sateesh" <sateeshkavuri@ yahoo.com> writes:
                            >[color=green]
                            >> Hi,
                            >> Is it possible to access Lotus notes using Python? Can anyone
                            >> provide me some pointers?[/color]
                            >
                            > jython + LN Java bindings may be usable[/color]

                            Yes. I do this all the time.

                            --
                            Dan Poirier -- Email: my last name at pobox dot com

                            Comment

                            Working...