importers Package¶
importers Package¶
Database import
accountimporter Module¶
accounttransactionimporter Module¶
-
class
stoqlib.importers.accounttransactionimporter.AccountTransactionImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['parent_source', 'source', 'parent_dest', 'dest', 'date', 'code', 'description', 'value']¶
-
branchimporter Module¶
-
class
stoqlib.importers.branchimporter.BranchImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['name', 'fancy_name', 'phone_number', 'fax_number', 'state_registry', 'cnpj', 'city', 'country', 'state', 'street', 'streetnumber', 'district', 'postal_code']¶
-
branches= []¶
-
clientimporter Module¶
-
class
stoqlib.importers.clientimporter.ClientImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['name', 'phone_number', 'mobile_number', 'email', 'rg', 'cpf', 'city', 'country', 'state', 'street', 'streetnumber', 'district']¶
-
creditproviderimporter Module¶
-
class
stoqlib.importers.creditproviderimporter.CreditProviderImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['name', 'phone_number', 'mobile_number', 'email', 'cnpj', 'fancy_name', 'state_registry', 'city', 'country', 'state', 'street', 'streetnumber', 'district', 'provider_name']¶
-
csvimporter Module¶
CSV import classes
-
class
stoqlib.importers.csvimporter.CSVRow(item, field_names)[source]¶ Bases:
objectA row in a CSV file
-
class
stoqlib.importers.csvimporter.CSVImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.importer.ImporterClass to assist the process of importing csv files.
Variables: - fields – field names, a list of strings
- optional_fields – optional field names, a list of strings
- dialect – optional, csv dialect, defaults to excel
-
fields= []¶
-
optional_fields= []¶
-
dialect= 'excel'¶
employeeimporter Module¶
-
class
stoqlib.importers.employeeimporter.EmployeeImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
create_users= False¶
-
fields= ['name', 'phone_number', 'mobile_number', 'email', 'rg', 'cpf', 'role', 'employee_number', 'start', 'salary', 'city', 'country', 'state', 'street', 'streetnumber', 'district', 'profile', 'username', 'password']¶
-
gnucashimporter Module¶
GnuCash importing
importer Module¶
-
class
stoqlib.importers.importer.Importer(items=500, dry=False)[source]¶ Bases:
objectClass to assist the process of importing csv files.
-
set_items_per_commit(items)[source]¶ Sets the number of items which should be parsed between commits. Defaults to 500. -1 means that the whole file should be parsed before committing :param items: number of items or
-
set_dry(dry)[source]¶ Tells the CSVImporter to run in dry mode, eg without committing anything. :param dry: dry mode
-
feed(fp, filename='<stdin>')[source]¶ Feeds csv data from an iterable :param fp: a file descriptor :param filename: optinal, name of input file
-
invoiceimporter Module¶
-
class
stoqlib.importers.invoiceimporter.InvoiceImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['layout_description', 'layout_width', 'layout_height', 'field_name', 'field_x', 'field_y', 'field_width', 'field_height']¶
-
ofximporter Module¶
OFX importing
-
class
stoqlib.importers.ofximporter.OFXImporter[source]¶ Bases:
stoqlib.importers.importer.ImporterClass to assist the process of importing ofx files.
productimporter Module¶
-
class
stoqlib.importers.productimporter.ProductImporter[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['base_category', 'barcode', 'category', 'description', 'price', 'cost', 'commission', 'commission2', 'markup', 'markup2', 'ncm']¶
-
optional_fields= ['unit']¶
-
purchaseimporter Module¶
-
class
stoqlib.importers.purchaseimporter.PurchaseImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['supplier_name', 'transporter_name', 'branch_name', 'user_name', 'payment_method', 'due_date', 'sellable_list', 'invoice', 'quantity']¶
-
saleimporter Module¶
-
class
stoqlib.importers.saleimporter.SaleImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['branch_name', 'client_name', 'salesperson_name', 'payment_method', 'product_list', 'coupon_id', 'open_date', 'due_date']¶
-
serviceimporter Module¶
stoqlibexamples Module¶
Import CSVs for the Stoqlib example database
supplierimporter Module¶
-
class
stoqlib.importers.supplierimporter.SupplierImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['name', 'phone_number', 'mobile_number', 'email', 'cnpj', 'state_registry', 'city', 'country', 'state', 'street', 'streetnumber', 'district']¶
-
suppliers= []¶
-
transferimporter Module¶
-
class
stoqlib.importers.transferimporter.TransferImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['source_branch_name', 'source_employee_name', 'dest_branch_name', 'dest_employee_name', 'sellable_list', 'open_date', 'receival_date', 'quantity']¶
-
transporterimporter Module¶
-
class
stoqlib.importers.transporterimporter.TransporterImporter(lines=500, dry=False)[source]¶ Bases:
stoqlib.importers.csvimporter.CSVImporter-
fields= ['name', 'phone_number', 'mobile_number', 'email', 'cnpj', 'state_registry', 'city', 'country', 'state', 'street', 'streetnumber', 'district', 'open_contract', 'freight_percentage']¶
-