![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
omft-utils
Advanced tools
Various utility function to be used with Oracle Managed File Transfer(MFT)
Utility functions for use with Oracle MFT - Managed File Transfer nodeJS modules and applications.
npm install omft-utils --save
var outils = require('omft-utils');
var ar = [];
ar[0] = 'file=test.xml'
ar[1] = 'outfile=out.xml outdir=/tmp/mft'
var o = outils.parseCalloutArgs(ar);
console.log('o.file: ' +o.file);
console.log('o.outfile: ' +o.outfile);
console.log('o.outdir: ' +o.outdir);
This is a basic SOAP JSON config file that supports comments.
var opts = {
"type": "SOAP", // Inline or Binary XML
"ctype": "binary", // "text"
"reqtemps": true, // require templates of false means only payload substitution if template not found
"retbody": true, // or 'false' which means don't return file for things like WSA when file is outside the SOAP payload
"file": process.argv[1],
"maxsize": 26214400, // 25MB limits the size of the SOAP payload. WSA can be higher value
"templatedir": path.join(__dirname, '../files') // overrides the default template dir
};
outils.genUploadRequest(opts, function(er, fsz, bdy) {
if (er) {
console.log('genRequestTest SOAP: error ' +er);
process.exit(1);
}
console.log('SUCCESS: filesize is ' +fsz);
console.log('file is ' +opts.file);
console.log('type is ' +opts.type);
console.log('ctype is ' +opts.ctype);
console.log('maxsize is ' +opts.maxsize);
console.log('templatedir is ' +opts.templatedir);
console.log('Body is ' +bdy);
});
var ts = new Date().toISOString();
var data = 'Hello %%NAME%% it is now %%ISOTIME%%';
var vals = {'NAME': 'Dave', 'isoTIME': ts};
console.log(outils.varSub(data, vals));
// simple example
var f1 = process.argv[1];
var f2 = './test/binfile';
var f3 = 'NOFILE';
var result,s;
try {
console.log(outils.isBinary(f1, '')); // returns true
console.log(outils.isBinary(f2, '')); // returns false
console.log(outils.isBinary(f3, '')); // throws error
} catch (e) {
console.log(e);
};
See the examples/templates.js.
File variables follow the Node Path Parse implementation
%%FILEPATH%% /user/me/test/foo.bar
%%FILEBASE%% foo.bar
%%FILENAME%% foo
%%FILEEXT%% .bar
%%FILEDIR%% test
%%ISOTIME%% 2029-05-15T18:36:07.428Z
%%USERNAME%% JANE
%%PASSWORD%% TARZAN
``
## Test
npm install chai
npm test
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## History
Created: May 3, 2015
## Credits
Dave Berry A.K.A (bigfiles)
## License
ISC
FAQs
Various utility function to be used with Oracle Managed File Transfer(MFT)
The npm package omft-utils receives a total of 6 weekly downloads. As such, omft-utils popularity was classified as not popular.
We found that omft-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.