Skip to main content

Add file-based data transfer to server for offline-use

Project description

pypi travis coverage


Transfer django_collect_offline transactions as files using SFTP over an SSH connection.

Data flows from client to server where a server is either a node server or the central server.

see also django_collect_offline.


On the client:

python export_transactions

On the server or receiving host:

python incoming_observer

python deserialize_observer


Two FileQueueObservers do the work using use watchdog observers; IncomingTransactionsFileQueueObserver and DeserializeTransactionsFileQueueObserver. They are called using management commands:

python incoming_observer


python deserialize_observer


The client exports data to JSON and sends to the server. Using TransactionExporter, data is exported into a JSON file from django_collect_offline.models.OutgoingTransaction on the client and sent to the server using TransactionFileSender.

Once a file is sent to the server, the IncomingTransactionsFileQueueObserver detects it and adds the filename to the queue (IncomingTransactionsFileQueue).


Processed files in the queue IncomingTransactionsFileQueue are moved to the pending folder watched by DeserializeTransactionsFileQueueObserver.and added to the its queue, DeserializeTransactionsFileQueue.

Processing queue items / filenames

Each queue has a processor, (see process_queue). The processor calls the next_task method for each item in the queue in FIFO order infinitely or until it gets a None item.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-collect-offline-files, version 0.1.21
Filename, size File type Python version Upload date Hashes
Filename, size django_collect_offline_files-0.1.21-py3-none-any.whl (53.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-collect-offline-files-0.1.21.macosx-10.13-x86_64.tar.gz (77.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page