473,668 Members | 2,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python and SMB, again...

On 1997/06/05 Peter Henning wrote:
SMB, ldap, imap4rev1

Is there an SMB library? I want to be able to access SMB shares
from python, or publish shares onto a network neighbourhood from
a python server. If anyone has implemented SMB in python, could
you point me to the code? Otherwise, would like Samba be a good
starting-point for implementing a python SMB module?


I was wondering if there are any news on this topic... Anyway, I have a
project to do, and it is about implementing a SMB server on the client
machine that translates other protocols to SMB (ftp, for example). So,
for example, the site ftp.openbsd.org could be viewed in \\My Network
Places\FTP Networks (or whatever). There are two posible solutions:

The first is to implement a SMB server on the client machine. Maybe
this one is't the most effective way to do this, but anyway, in this
case I'll need a smb module. If anyone could help me, I'd be glad. If I
can't do this in Python, and there are other programming languages that
support this option, please tell me.

The second option is to create a virtual drive and map the network
content into it. Even in this case, i can share it only to be visible
in My Network Places, but it isn't the point. To create a virtual
drive, I have to study the partition table of virtual drives, and even
then, I know only one virtual drive module, in C. But I'd be happy if
you coud tell me something useful on this option.

Anyway, if you know a third option, that is better than these, or if
you think you know, wich one of these is better, just let me know. This
is the harder part of my project and I can't get out of it. It is a
simple cross-platform file sharing protocol for my mature exam work.
The linux-part is done, so all I need is to do the Windows stuff. I'm
new in Windows programming, and I'm helpless, so any ideas are
welcome...

Sep 12 '05 #1
4 4150
Oops, I forgot to look at my old topic. Some of you mentioned CIFS. I
was away from home for a while and now I'm on my job, again. Soth the
Network Neighborhood thing isn't a problem. Now I know, that probably
it would be better to use CIFS rather than a virtual filesystem. I just
need to read through this CIFS thing, so I'll Google for tutorials and
look at samba.org/cifs but if you have a better idea, just let me know.
Sorry for being so careless and not caring obout my old topic. Now at
least I have some waypoints, and know that I have nothing to do with
Windows' kernel. All I have to look after is the smb module, even if
not in python.

Sep 12 '05 #2
You might want to take a look at Webdrive (www.webdrive.com).
It does what I "think" you are describing for ftp, http,
https, and WebDAV.

-Larry Bates

Atila Olah wrote:
On 1997/06/05 Peter Henning wrote:
SMB, ldap, imap4rev1

Is there an SMB library? I want to be able to access SMB shares

from python, or publish shares onto a network neighbourhood from

a python server. If anyone has implemented SMB in python, could
you point me to the code? Otherwise, would like Samba be a good
starting-point for implementing a python SMB module?

I was wondering if there are any news on this topic... Anyway, I have a
project to do, and it is about implementing a SMB server on the client
machine that translates other protocols to SMB (ftp, for example). So,
for example, the site ftp.openbsd.org could be viewed in \\My Network
Places\FTP Networks (or whatever). There are two posible solutions:

The first is to implement a SMB server on the client machine. Maybe
this one is't the most effective way to do this, but anyway, in this
case I'll need a smb module. If anyone could help me, I'd be glad. If I
can't do this in Python, and there are other programming languages that
support this option, please tell me.

The second option is to create a virtual drive and map the network
content into it. Even in this case, i can share it only to be visible
in My Network Places, but it isn't the point. To create a virtual
drive, I have to study the partition table of virtual drives, and even
then, I know only one virtual drive module, in C. But I'd be happy if
you coud tell me something useful on this option.

Anyway, if you know a third option, that is better than these, or if
you think you know, wich one of these is better, just let me know. This
is the harder part of my project and I can't get out of it. It is a
simple cross-platform file sharing protocol for my mature exam work.
The linux-part is done, so all I need is to do the Windows stuff. I'm
new in Windows programming, and I'm helpless, so any ideas are
welcome...

Sep 13 '05 #3
Thank you, Larry, I'm figuring out things right now.

Sep 14 '05 #4
Thank you, Larry, I'm figuring out the things right now.

Sep 14 '05 #5

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

Similar topics

36
6368
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
1
1776
by: praba kar | last post by:
Dear All, Python 2.3 creates byte code with *.pyc extention. But Python 2.4 creates bytes code with *.pyo. Is there any difference between *.pyc and *.pyo?. Actually After python compiled a program then that program will run from the *.pyc byte code. If I delete that byte code what will be
112
13804
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them because they smell "Javaish." But now my code base is expanding and I'm beginning to appreciate the wisdom behind them. I welcome example code and illustrations.
0
1232
by: Gabriel Genellina | last post by:
QOTW: "Good God! Is there *anything* that python does not already do? I hardly feel the need to write programs anymore ... Its really 80% like of the questions that are asked here get answered along the lines of: import some_fancy_module solution = some_fancy_module.exactly_the_right_function_to_solve(problem) " - Wildemar Wildenburger "Whenever you are tempted to create dynamically variables names, 99% of the time what you really...
0
8459
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
8374
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
8890
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
8575
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
8653
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
7398
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
6206
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
4202
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
1783
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.