Skip to main content

Csv2Xml is a libary used to convert a CSV(comma-separated values) file to XML(extensible markup language).

Project description

CSV2XML

Build Status

Csv2Xml is a libary used to convert a CSV(comma-separated values) file to XML(extensible markup language).

  • Input as CSV file.
  • Get a Xml file
  • Magic !!

Features!

  • Import a csv file as input.
  • Conversion of xml data from the csv

Tech

Csv2xml uses a number of open source projects to work properly:

  • [Pandas] - Pandas libary to parse the csv file.

Installation

Csv2xml requires Python 3 v3+ to run.

Install the dependencies and start the server.

$ pip install Csv2Xml

How to run

from Csv2xml import Csv2Xml Csv2Xml=Csv2Xml(filePath,root='Optional',children='Optional') Csv2Xml.parse2Xml()

Output

<Payload> <tuple> <Position>Business Analyst<Position/> <Level>1<Level/> <Salary>45000<Salary/> </tuple> <tuple> <Position>Junior Consultant<Position/> <Level>2<Level/> <Salary>50000<Salary/> </tuple> <tuple> <Position>Senior Consultant<Position/> <Level>3<Level/> <Salary>60000<Salary/> </tuple> <tuple> <Position>Manager<Position/> <Level>4<Level/> <Salary>80000<Salary/> </tuple> <tuple> <Position>Country Manager<Position/> <Level>5<Level/> <Salary>110000<Salary/> </tuple> <tuple> <Position>Region Manager<Position/> <Level>6<Level/> <Salary>150000<Salary/> </tuple> <tuple> <Position>Partner<Position/> <Level>7<Level/> <Salary>200000<Salary/> </tuple> <tuple> <Position>Senior Partner<Position/> <Level>8<Level/> <Salary>300000<Salary/> </tuple> <tuple> <Position>C-level<Position/> <Level>9<Level/> <Salary>500000<Salary/> </tuple> <tuple> <Position>CEO<Position/> <Level>10<Level/> <Salary>1000000<Salary/> </tuple></Payload>

Development

Want to contribute? Great!

Csv2xml uses pandas libary. Make a change in your file and instantaneously see your updates!

Verify the deployment by navigating to your server address in your preferred browser.

127.0.0.1:5000

License

MIT

Free Software, Hell Yeah!

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Csv2Xml-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file Csv2Xml-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Csv2Xml-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for Csv2Xml-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa1920dfd996cab18641e5bd1af9d2b83fe7877c3e0414aa05d38117f4d2699e
MD5 ebee33c261b9063a1ed601316a32307c
BLAKE2b-256 fb350daa156f1e9a216eb4c7a46d1f863d4b43af9498e65584a1dd4780709d82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page