Jump to content

KerbalStuffWrapper


toadicus

Recommended Posts

KerbalStuffWrapper is a suite of .NET-compatible utilities that provides access to the KerbalStuff API. The suite is broken into three parts:

  • KerbalStuffReadOnly.dll - A library implementing access to the documented, read-only KerbalStuff API members. This should be suitable for use in KSP mods for version checking and other purposes. Released under the BSD 2-Clause license.
  • KerbalStuff.dll - A library implementing access to the document, read-write KerbalStuff API members. Depends on and inherits from KerbalStuffReadOnly.dll. This should be suitable for use in external applications performing mod management for KerbalStuff users. Released under the BSD 2-Clause license.
  • KerbalStuffWrapper.exe - A proof-of-concept console application providing command-line access to all documented KerbalStuff API members. Released under the BSD 3-Clause license.

Note: this software is currently in BETA. While all of the currently-planned features are implemented, testing has been limited and bugs may occur. I strongly encourage developers and users using or linking this software to report bugs early and often. Thanks!

DOWNLOADS

KerbalStuff: [zip]

SOURCE: [git]

Currently hosted only on my private git. If interest in collaboration develops, I will move it to github.

CHARITY:

Do you like what you see here so much that you can't imagine downloading it without first parting with your hard-earned money? If so, this specially-crafted PayPal donation button will help you to take the currency of your choice and make it my money instead of your money. More seriously though: donations are 100% optional and entirely at your own discretion. If you do choose to donate, I'll appreciate it!

btn_donate_LG.gif

TODO:

  • Implement additional API members as SirCmpwn releases them.
  • Maybe abandon the console app and collaborate on SirCmpwn's instead.
  • Maybe make the console app less ugly.

LICENSE:



Author:
toadicus

Copyright © 2014, toadicus

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the author nor the names of other contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
* Neither the name of the author nor the names of other contributors may be used to endorse or promote products
derived from this software without specific prior written permission.¹

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This software uses the CLAP .NET Command-Line Parser, Copyright © 2011 Adrian Aisemberg, SharpRegion.
Used under license.

This software uses the MiniJSON .NET JSON Parser, Copyright © 2013 Calvin Rien. Used under license.

This software uses the FormUpload multipart/form-data library,
http:www.briangrinstead.com/blog/multipart-form-post-in-c.

KerbalStuff is copyright © 2014 Drew DeVault. Used under license.

¹3rd clause applies only to KerbalStuffWrapper.exe; see README and full source at
http://git.toad.homelinux.net/projects/KerbalStuffWrapper.git for more information.
KerbalStuffWrapper

Edited by toadicus
Added Beta notice.
Link to comment
Share on other sites

I would love to see this on GitHub!

I just got a change pushed to the KerbalStuff API, allowing the API to pull the mod's updated date/time. Think you can update to support?

Thanks!

Edited by 4o66
spelling
Link to comment
Share on other sites

Done! I will happily accept pull requests to help keep up to date. :) I don't think the live KerbalStuff site is using your update yet, so I can't release a change that supports it yet, but thanks for the interest! Edited by toadicus
Link to comment
Share on other sites

  • 6 months later...

Hey, this has sat idle a long time. Probably because it kept working how I needed it to for so long. ;)

But, KerbalStuff's recent certificate update breaks mono's ability to interface with it. CurlSharp, a C# binding for libcurl, is a reasonable work around (and is used by CKAN), but doesn't work reliably for uploads and my C/C++ skills aren't... really there at alll... so I can't change that.

So! I've rewritten the whole thing in python, and released it into the public domain.

Feel free to use it instead of the C# version until a better solution presents itself. :)

http://git.toad.homelinux.net/projects/PyKStuff.git

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...